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.

Error on npm start (not finding some modules)

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dejobocommented, Sep 18, 2019

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’.‌

yarn install fixed it! Please ignore.

1reaction
dejobocommented, Sep 18, 2019

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'.‌

Read more comments on GitHub >

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

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