-
Notifications
You must be signed in to change notification settings - Fork 495
Fixed compile error "ERROR in src/app/person.service.ts(5,23): error… #1375
Conversation
… TS2732: Cannot find module \'../data/data.json\'"...
|
I do not reproduce your issue. What's the versions of node and npm you are using? |
|
Hi, sir. These are my versions: And here comes 'npm start' output in detail, of course, after a successful npm install: It happens both on my desktop and my laptop with different Ubuntu versions. Maybe that's a configuration issue of my environment? |
|
I don't reproduce your issue with your version: I'm using NVM to install my node version. What did you use? Is it from another NodeJS version manager? Regardless, it does not seem to produce any regression, so I will merge this PR as there might be other people that have the same issue. |
|
I don't remeber the way I setup node, but I checked it and nvm is not installed in my machine. It was a manual setup, I guess. The only thing that makes sense for me is that maybe you have installed any global package that fixes this issue in your environment, but it is not present as a dev dependency. Just as an idea. Anyway, thanks for your attention. |
I've found a bug in demo project. It involves the way fixture data is being loaded inside de service and it prevents the whole subproject to be transpiled and executed.
Steps to reproduce:
Detailed error:
This solution involves only typescript config and should be harmless.
Cheers!