-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error: Package subpath './compiler.js' is not defined by "exports" in node_modules/svelte/package.json #7
Comments
There was a breaking change introduced in Svelte sveltejs/svelte#5665 The fix is to update
Couldn't create a fix branch on the repo, please update yourself. |
Thanks for your help! I’m fixing the template |
Updated the template using `npx degit sveltejs/template my-svelte-project` I also added a `yarn.lock` file so dependencies don't break for future deployments. Related to Samuel-Martineau/generator-svelte#7
It should be fixed right now as all the tests pass. You should upgrade to Thanks for using |
FYI I didn't run into this with Node 10.x (10.23, specifically), but just upgraded to Node 12.x (12.20.0) then suddenly did. |
But does it work now with node 12? |
Yes, the above fix worked (upgrading to 6.1.1), I'm just adding that I didn't get the "Package subpath" error at all when using Node 10. |
chore: 🤖 upgrade two plugins chore: 🤖 upgrade all version Samuel-Martineau/generator-svelte#7 fix: 🐛 fix all error in svelte3
Goddamn. The whole ecosystem is rigged, rigged and should follow Windows Philosophy of backwards compatibility. It's been a year since I wrote my app and it already broken. WTF with X-Gen!!!!! |
work for me |
Error: Package subpath './compiler.js' is not defined by "exports" in node_modules/svelte/package.json More info: Samuel-Martineau/generator-svelte#7 (comment)
Thank youu! It worked <3 |
Solve this; `Error: Package subpath './compiler.js' is not defined by "exports" in node_modules/svelte/package.json` [Source](Samuel-Martineau/generator-svelte#7 (comment))
Solve this; `Error: Package subpath './compiler.js' is not defined by "exports" in node_modules/svelte/package.json` [Source](Samuel-Martineau/generator-svelte#7 (comment))
Fix to avoid the issue Samuel-Martineau/generator-svelte#7
Describe the bug
Fresh deploy of the generator on MacOS Catalina and Node v14.3.0. Trying to run the
build
ordev
scripts,rollup
fails with this error:Logs
Platform:
The text was updated successfully, but these errors were encountered: