Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import via es6 module #85

Open
moritzsalla opened this issue Mar 27, 2023 · 0 comments
Open

Unable to import via es6 module #85

moritzsalla opened this issue Mar 27, 2023 · 0 comments

Comments

@moritzsalla
Copy link

I'm unable to import the dependency directly via es6 modules.

Screenshot 2023-03-27 at 17 56 24

A possible workaround is importing the following but this feels fragile & is suboptimal in terms of package size.

import Canvas from 'glsl-canvas-js/dist/cjs/canvas/canvas'
"glsl-canvas-js": "~0.2.9"
   Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023; root:xnu-8792.81.3~2/RELEASE_X86_64
    Binaries:
      Node: 18.11.0
      npm: 8.19.2
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.1.6
      eslint-config-next: 13.1.6
      react: 18.2.0
      react-dom: 18.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant