You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a simple <script type=module > test, with the static template in browser modules are working fine. But I'm still getting the"failed to load script error" with node modules.
@AmyScript Can you please provide another link, as the sandbox you pointed to doesn't exist anymore?
I made a simple <script type="module"> test, with the static template in browser modules are working fine.
But I'm still getting the"failed to load script error" with node modules.
@looeee That's because the static template doesn't support using npm packages.
We could potentially add support for node_modules in static template, but this would require some server side changes. I think the best way to currently handle this is by creating a sandbox based on a container, like https://codesandbox.io/s/node. These sandboxes are run on a server and correctly host the node_modules.
🐛 bug report
Trying to add web components through:
getting this error:
How has this issue affected you? What are you trying to accomplish?
can't import the web component module via code sandbox even though it works perfectly on a local server
Link to sandbox: link
Your Environment
| Software | Name/Version|
| Сodesandbox | Current
| Browser | Chrome
| Operating System | Mac
The text was updated successfully, but these errors were encountered: