Reputation: 4483
This is a popular question with several resources on the web to resolve. However after trying multiple solutions none have worked. I am getting an error which says Cannot Find Module './neuralnet'.
I have tried some of the solutions listed here
How do I resolve "Cannot find module" error using Node.js?
including npm install and npm install --save neuralnet and nothing has worked.
Any suggestions would be great.
Upvotes: 0
Views: 71
Reputation: 824
The way you have it setup -- in home.component.ts -- your import { NeuralNetService } from './neuralnet.service'
, is looking in the current directory, which is in app/components/home
. This clearly isn't where it is.
Use import { NeuralNetService } from './../../neuralnet.service'
and it will properly resolve.
Upvotes: 1