`yarn bundle` appears to hang when used with `node_modules`
See original GitHub issueDescribe the bug A clear and concise description of what the bug is.
I run yarn bundle from inside one of my workspace packages and nothing happens. The terminal just hangs forever.
I am using node_modules. Does this only work with plug and play?
To Reproduce
I made a sample repository here To reproduce
clone repo
yarn install
yarn build
cd packages/lambda-gq-resolver
yarn bundle
Expected behavior That the package is bundled as demonstrated here
Screenshots
Desktop (please complete the following information):
- OS: macOS
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
yarn install hangs during "Fetching packages..." #764 - GitHub
I have the same issue on Windows 10 using nodejs v6.2.0 x64. It hangs when fetching the last package: C:\xxx>yarn yarn install v0.15.1...
Read more >npm install hangs - node.js - Stack Overflow
Installing yarn globally using npm then running yarn install fixed this for me (also yarn logs " There appears to be trouble with...
Read more >get rid of node_modules with Yarn Plug'n'Play - Medium
A special resolver is used in order to help Node discovering where each dependency has been installed (under the Yarn cache folder). It...
Read more >yarn install
Yarn will not install any package listed in devDependencies if the NODE_ENV environment variable is set to production . Use this flag to...
Read more >How To Install and Use the Yarn Package Manager for Node.js
Yarn is a package manager for Node.js that focuses on speed, security, and consistency. In this tutorial you will install Yarn globally, ...
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 Free
Top 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

Hey @ojkelly thanks for your help I fixed it. Basically I need if the package complaining is a dependency then you need to add the peer dependency as a dependency to
package.jsontoo, thats it. I didn’t need to usepackageExtensionsat all so I am still not sure what I would use them for, maybe that will come clear later.Brilliant!
packageExtensionsis for when an external/npm package doesn’t declare it’s dependencies properly, and you need to adjust them. As far as I know what you add under that is essentially the same as if the package maintainer added it topackage.jsonthemselves.