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

Import via esm.sh failure #21

Open
vasturiano opened this issue Jan 30, 2025 · 0 comments
Open

Import via esm.sh failure #21

vasturiano opened this issue Jan 30, 2025 · 0 comments

Comments

@vasturiano
Copy link

First of all, thanks for this awesome module!

When I try to import taichi.js in the browser, bundled with esm.sh, as simply as:

<script type="module">
  import * as ti from 'https://esm.sh/taichi.js';
</script>

I get the following error:

Uncaught TypeError: R.platform is not a function
    at taichi.js:16:126746
    at taichi.js:16:133807
    at taichi.js:16:134044
    at taichi.js:16:3206224

Would you happen to know why? I'm not sure if this is an issue on esm.sh or if there's some config that I might need to apply in the bundling to solve the error.

The simplest codepen here:
https://codepen.io/vasturiano/pen/jENJmJG?editors=1001

Thanks in advance!

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