Closed leonardopliski closed 3 years ago
npm
Linux
When I run npm run start Astro throws an error that it cannot find the module snowpack-plugin-jsx.cjs, but when debugging I found out that the filename is actually inside the Astro node_modules package, but the filename is just snowpack-plugin.cjs:
npm run start
snowpack-plugin-jsx.cjs
node_modules
snowpack-plugin.cjs
Package versions:
"devDependencies": { "astro": "^0.18.0-next.3", "@astrojs/renderer-preact": "^0.2.0-next.0" }
Node version: v16.5.0
v16.5.0
In the previous version, it was working as expected.
npm init astro
npm install
Error: Cannot find module '/home/leonardo/projects/test/node_modules/astro/snowpack-plugin-jsx.cjs' Require stack: - /home/leonardo/projects/test/node_modules/snowpack/lib/cjs/util.js - /home/leonardo/projects/test/node_modules/snowpack/lib/cjs/commands/add-rm.js - /home/leonardo/projects/test/node_modules/snowpack/lib/cjs/index.js ...
What is expected: The filename should be resolved and no error is thrown.
https://github.com/leonardopliski/astro-bug-reproducible-app
Thanks for filing! This was a next release that wasn't meant to go out under latest. Just fixed it, and npm init astro should be working again
next
latest
Thanks!
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
When I run
npm run start
Astro throws an error that it cannot find the modulesnowpack-plugin-jsx.cjs
, but when debugging I found out that the filename is actually inside the Astronode_modules
package, but the filename is justsnowpack-plugin.cjs
:Package versions:
Node version:
v16.5.0
In the previous version, it was working as expected.
Steps to Reproduce
npm init astro
using template blognpm install
npm run start
What is expected: The filename should be resolved and no error is thrown.
Link to Minimal Reproducible Example
https://github.com/leonardopliski/astro-bug-reproducible-app