We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe it should be possible to import ES modules directly from unpkg - working examples.
However it doesn't appear to work with xterm.js.
Try 1:
<script type="module"> import { Terminal } from 'https://unpkg.com/xterm@latest?module'; alert("OK!"); </script>
This redirects to /xterm@4.8.1?module which returns 404 with message "Package xterm@4.8.1 does not contain an ES module"
/xterm@4.8.1?module
Try 2:
<script type="module"> import { Terminal } from 'https://unpkg.com/xterm@latest/lib/xterm.js?module'; alert("OK!"); </script>
This URL serves some minified Javascript, but the import aborts with:
Uncaught SyntaxError: The requested module 'https://unpkg.com/xterm@latest/lib/xterm.js?module' does not provide an export named 'Terminal'
Have I missed something, or would something need changing in xterm.js to support this?
The text was updated successfully, but these errors were encountered:
Duplicate of #2878
Sorry, something went wrong.
No branches or pull requests
I believe it should be possible to import ES modules directly from unpkg - working examples.
However it doesn't appear to work with xterm.js.
Try 1:
This redirects to
/xterm@4.8.1?module
which returns 404 with message "Package xterm@4.8.1 does not contain an ES module"Try 2:
This URL serves some minified Javascript, but the import aborts with:
Have I missed something, or would something need changing in xterm.js to support this?
The text was updated successfully, but these errors were encountered: