Build cannot find package.json via SmooshPackageJSON (embroider:core:smoosh-package-json)
See original GitHub issueember build --watch
Environment: development
Build Error (OneShot)
ENOENT: no such file or directory, open '/var/folders/g5/dvq_p0010s5b2ys8bwd7czdr0000gp/T/broccoli-90580jYsLRGENdlm6/out-14-broccoli_merge_trees/package.json'
at SmooshPackageJSON (embroider:core:smoosh-package-json)
-~- created here: -~-
at new Plugin (/Users/iradchenko/workspace/goodroute/client/node_modules/@embroider/compat/node_modules/broccoli-plugin/dist/index.js:45:33)
at new SmooshPackageJSON (/Users/iradchenko/workspace/goodroute/client/node_modules/@embroider/compat/src/smoosh-package-json.js:12:9)
at buildCompatAddon (/Users/iradchenko/workspace/goodroute/client/node_modules/@embroider/compat/src/build-compat-addon.js:43:24)
at Object.cachedBuildCompatAddon [as default] (/Users/iradchenko/workspace/goodroute/client/node_modules/@embroider/compat/src/build-compat-addon.js:13:16)
at movedAddons.map.oldPkg (/Users/iradchenko/workspace/goodroute/client/node_modules/@embroider/compat/src/compat-addons.js:45:105)
at Array.map (<anonymous>)
at CompatAddons.get tree [as tree] (/Users/iradchenko/workspace/goodroute/client/node_modules/@embroider/compat/src/compat-addons.js:45:63)
at CompatApp.augment (/Users/iradchenko/workspace/goodroute/client/node_modules/@embroider/core/src/build-stage.js:57:64)
at CompatApp.get tree (/Users/iradchenko/workspace/goodroute/client/node_modules/@embroider/core/src/build-stage.js:26:50)
at CompatApp.<anonymous> (/Users/iradchenko/workspace/goodroute/client/node_modules/typescript-memoize/dist/memoize-decorator.js:67:52)
-~- (end) -~-
Setup in app:
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
});
ember-source@3.23.1 “@embroider/compat”: “^0.33.0”, “@embroider/core”: “^0.33.0”, “@embroider/router”: “^0.33.0”, “@embroider/webpack”: “^0.33.0”,
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
npm can't find package.json - Stack Overflow
json is not available in your project. So, to create package.json , use the following steps: open command prompt on your project directory;...
Read more >Cannot find package.json file - DeployHQ
Cannot find package.json file. When running an NPM build task, you may face the following error: no such file or directory, open '/data/package.json'....
Read more >NPM cannot find package.json in non-root directory #2758
I am trying to run npm install while specifying a directory path for the package.json file. I want to put Linux only dependencies...
Read more >npm-ci
If dependencies in the package lock do not match those in package.json , npm ci will ... Configure Travis CI to build using...
Read more >npm, pnpm, and Yarn | IntelliJ IDEA Documentation - JetBrains
yarn install. pnpm install. As a result you get all the dependencies listed in the package.json from the current ...
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
@knownasilya This should be fixed in
0.35.1
: https://github.com/embroider-build/embroider/blob/master/CHANGELOG.md#0351-2021-01-11My issue appeared to be caused by https://github.com/emberjs/ember-test-waiters and how it trys to expose itself to apps. Thanks to @ef4 for the discovery.
https://github.com/embroider-build/embroider/pull/663 should keep embroider from blowing up.