question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Latest release is missing dependencies

See original GitHub issue

Bug 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

  1. cd $(mktemp -d) && yarn init -2 && rm -f package.json yarn.lock (I have to simplify that 🙂)
  2. yarn dlx create-snowpack-app my-csa --template @snowpack/app-template-react --use-yarn
  3. cd my-csa && yarn build

Expected behavior

Should work fine.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Pika-Poolcommented, Jul 13, 2021

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

1reaction
floskercommented, Jul 20, 2021

3.7.2

Maybe some higher versions too < 3.8, but I haven’t tested.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found