Error on npm start (not finding some modules)
See original GitHub issueI think that this issue is related (or maybe the same) as #4803. When I try to run npm start from a fresh project (.NET Core + Angular) I’m getting this:
ERROR in ../node_modules/ngx-bootstrap/timepicker/models/index.d.ts:2:38 - error TS2307: Cannot find module '@angular/forms/src/directives/control_value_accessor'.
2 import { ControlValueAccessor } from '@angular/forms/src/directives/control_value_accessor';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/ngx-bootstrap/timepicker/models/index.d.ts:3:22 - error TS2307: Cannot find module '@angular/core/src/type'.
3 import { Type } from '@angular/core/src/type';
I already ran yarn
to setup dependencies, but the problem still remain…
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How do I resolve "Cannot find module" error using Node.js?
This happens when a first npm install has crashed for some reason (SIGINT of npm), or that the delay was too long, or...
Read more >How to resolve "Cannot find module" error in Node
To fix the Cannot find module error, simply install the missing modules using npm . To so, you can use the following command:...
Read more >Cannot find module 'X' error in Node.js [Solved]
If you are getting the "Cannot find module" error when trying to run a local file, make sure that the path you passed...
Read more >Cannot find module error in Node.js (Fixed)
“Error: cannot find module” occurs when you try to load a non-existant module in Node – Either via ESM (ECMAScript Modules) or CommonJS ......
Read more >[BUG] npm run / start / test cannot find module when path to ...
Run the defined npm script via npm run test or npm test - both fail. Environment. npm: 8.3.0; Node.js: 17.3.0; OS Name: Windows...
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
yarn install fixed it! Please ignore.
I’m getting errors below when I build. I used yarn to install packages.
ERROR in …/node_modules/ngx-bootstrap/timepicker/models/index.d.ts:2:38 - error TS2307: Cannot find module '@angular/forms/src/directives/control_value_accessor'.
2 import { ControlValueAccessor } from '@angular/forms/src/directives/control_value_accessor'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ …/node_modules/ngx-bootstrap/timepicker/models/index.d.ts:3:22 - error TS2307: Cannot find module '@angular/core/src/type'.