Error: Cannot find module '/tmp/build_7b475095/decorate-angular-cli.js'
See original GitHub issueI am deploying to an nx app to heroku. and this error is thrown during dep install. Does anyone know how to handle it?
Error: Cannot find module ‘/tmp/build_7b475095/decorate-angular-cli.js’

OS : darwin x64
npm : 6.14.11
nx : Not Found
@nrwl/angular : 12.10.0
@nrwl/cli : 12.10.0
@nrwl/cypress : 12.10.0
@nrwl/devkit : 12.10.0
@nrwl/eslint-plugin-nx : 12.10.0
@nrwl/express : 12.10.0
@nrwl/jest : 12.10.0
@nrwl/linter : 12.10.0
@nrwl/nest : 12.10.0
@nrwl/next : Not Found
@nrwl/node : 12.10.0
@nrwl/nx-cloud : 12.3.13
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.10.0
@nrwl/web : Not Found
@nrwl/workspace : 12.10.0
@nrwl/storybook : 12.10.0
@nrwl/gatsby : Not Found
typescript : 4.3.5```
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
The module (package) not found is always specified in the format "Module not found: Error: Can't resolve 'package name' in 'project directory".
Read more >Error: Cannot find module in JavaScript [SOLVED]
We can solve Error: Cannot find module by installing the missing module. We can use npm tool to install the mising module.
Read more >"Cannot find module" when main file not index.js with ... - GitHub
Version: 13.9.0 Platform: Linux What steps will reproduce the bug?
Read more >How to resolve "Cannot find module" error in Node - Sabe.io
To fix the Cannot find module error, simply install the missing modules using npm . To so, you can use the following command:...
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

I also experienced this issue after packaging the application via
npm pack. I had to change thepackage.jsonas follows:I had similar problem just copied COPY decorate-angular-cli.js ./ in my dockerfile and it works now.