-
Notifications
You must be signed in to change notification settings - Fork 307
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
Installing sandpack-react: missing templates.js in codesandbox-import-utils #677
Comments
Hey, I'm sorry to hear you're facing this issue, but I just got it running. Here's a preview: https://codesandbox.io/p/github/rebeccapeltz/bug-playground/main?file=%2FREADME.md Which Node version are you using? Have you tried to reinstall more than once? I might be an issue on the dependencies manager and not exactly on Sandpack. |
I updated my yarn, and the same error happened. Is there any way I can know more about the setup of codesandbox.io so I can match it? I'm using
Leave this at runs with node, but produces a warning. |
As far as I can understand, this is just a warning, and it should not block you from using Sandpack. The warning mentions a source-map loading error from Ideally, CodeSandbox should address this error and point to the right source-map file. I'll try to fix this issue as soon as I can. |
At this point, there is a success with installing packages via |
Hi, in the latest version of sandpack the warning in the import seems to be throwing an error now. The issue is reproducible with a fresh install of create-react-app and sandpack v2.0.1. I've updated sandpack to latest version in the bug sandbox where the error can be reproduced. |
Co-authored-by: Danilo Woznica <danilowoz@gmail.com> fix codesandbox/sandpack#724 fix codesandbox/sandpack#677
Bug report
Packages affected
Description of the problem
Using
npm i @codesandbox/sandpack-react
When I execute locally with
npm run start
I get this error about a missing templates.js fileWhat were you doing when the problem occurred?
opening local react app server
What steps can we take to reproduce the problem?
create a new directory
run
npm i @codesandbox/sandpack-react
run
npm run start
I tried it with yarn and npm and got the same error.
Here's a GitHub repo with my problem: https://github.com/rebeccapeltz/bug-playground
Link to sandbox: link (optional)
Your Environment
The text was updated successfully, but these errors were encountered: