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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 BUG: (Regression) Snowpack build fails when scanning node_modules/.bin/*.js file. #3712
Comments
Aha, a more "minimal" reproduction:
So, I guess the behavior of a config file when the |
Related: Is there an easy way to view old versions of Snowpack docs? I'd love to figure out when mount was introduced/changed so I could read more about it. |
Hmm, no, this config module.exports = {
mount: {
".": "/"
},
exclude: [
"package*.json",
"snowpack.config.js",
"svelte.config.js",
"tsconfig.json",
"**/.gitignore",
"**/node_modules/**/*",
"**/*.@(sqlite|sqlite3)",
],
// ... Still tries to parse files inside of my |
It really looks like Even if I add these excludes: "sha.js",
"**/sha.js",
"node_modules\\.bin\\sha.js",
"node_modules\.bin\sha.js", (which ... it still dies trying to parse sha.js. I ended up working around the issue by just restructuring my files into a mount: {
"src": "/"
}, |
Quick checklist
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the bug
I just upgraded from Snowpack 3.0.11 to 3.8.8, and now
snowpack build
seems to be trying to parse a .js files inside ofnode_modules/.bin/
. This is failing for asha.js
file which is actually a bash script wrapper for a package by that name, with the following contents:Unsurprisingly, Snowpack is unable to parse it as JS:
snowpack build --verbose
gives:Steps to reproduce
Hmm, sorry, I'm not able to create a minimal reproduction. But my code is available to reproduce. Steps:
git clone git@github.com:NfNitLoop/feoblog.git
cd feoblog/web-client
git checkout f94e9cdfa1e98d576b375dbc00c14420f15f10c9
(for reproducibility)npm install
npm run build
(runssnowpack build
)Succeeds. But if we upgrade:
npm update snowpack
npm run build
(Or:npm run build -- --verbose
)... then I get the compile error.
Link to minimal reproducible example (optional)
https://github.com/NfNitLoop/feoblog/tree/f94e9cdfa1e98d576b375dbc00c14420f15f10c9
The text was updated successfully, but these errors were encountered: