[BUG] Latest release is missing dependencies
See original GitHub issueBug Report Quick Checklist
- I am on the latest version of Snowpack & all plugins.
- I use Yarn
- I run Linux
- I run Snowpack on Node.js v12+
Describe the bug
The very last release seems to have a change that makes it accidentally rely on hoisting. The reported case is node-gyp
(which is required in lib/index.js
). There may be others, but our tests stop early.
I suspect this file is bundled (are you bundling npm?), with node-gyp being a rare instance of package that cannot be bundled this way. If that’s the case, you may want to add it as a dependency (it’s part of the hot require path, so it’s not optional).
Note that, while clearly exhibited by Yarn, the hoisting problem affects all package managers.
To Reproduce
cd $(mktemp -d) && yarn init -2 && rm -f package.json yarn.lock
(I have to simplify that 🙂)yarn dlx create-snowpack-app my-csa --template @snowpack/app-template-react --use-yarn
cd my-csa && yarn build
Expected behavior
Should work fine.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:18 (6 by maintainers)
Top Results From Across the Web
[BUG] Latest release is missing dependencies #3158 - GitHub
The very last release seems to have a change that makes it accidentally rely on hoisting. The reported case is node-gyp (which is...
Read more >npm v5: missing dependencies after a successful 'npm install'
Following this version update (and without any new commits), I started getting the following warning on my 'npm install' while the step is...
Read more >Docker Compose release notes
In this release, Docker Compose recreates new resources (networks, volumes, secrets, configs, etc.) ... Added missing test dependency ddt to setup.py .
Read more >Known issues with Android Studio and Android Gradle Plugin
Upgrade to preview: Each release of Android Studio and the Android Gradle plugin ... This bug is triggered by some missing synchronization between...
Read more >Bug 24573: Add missing dependencies to cpanfile - Koha
Koha - Main Koha release repository. ... Bug 24573: Add missing dependencies to cpanfile. When using Elasticsearch, Catmandu::Store::ElasticSearch is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
how to resolve this issue in pnpm? I’m getting an error:
Package "@npmcli/arborist" not found. Have you installed it?
system details: windows 10 nodejs: v16.2.0 pnpm: 6.10.0 snowpack: v3.8.1
3.7.2
Maybe some higher versions too < 3.8, but I haven’t tested.