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.

Build cannot find package.json via SmooshPackageJSON (embroider:core:smoosh-package-json)

See original GitHub issue
ember 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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
mattmcmanuscommented, Jan 7, 2021

My 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.

Read more comments on GitHub >

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

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