-
-
Notifications
You must be signed in to change notification settings - Fork 49
Error: Cannot find module 'node_modules\nativescript\bin\tns' #214
Comments
Hey @joey0xx, What are your versions of npm and tns?
|
tns --version : 3.1.2 |
|
Hey guys, I can't reproduce the problem on Linux but I'll try later on mac/windows. Meanwhile, I can only give a few suggestions - try to downgrade the versions of nativescript-dev-webpack to 0.7.1 and nativescript-cli to 3.1.1 ( |
There seem to be a problem with nativescript webpack 0.7.2. Set your devDependencies with 0.7.1 (no ^ or ~ to maintain the exact version) like this: Its best to delete the modules and npm cache and then 'npm i' to have a clean install. This should solve the error you're getting. |
Getting the same error with nativescript-dev-webpack 0.7.1 and 0.7.0. npm --version: 4.2.0 I think this issue is just Windows related, on my mac nativescript-dev-webpack 0.7.2 works perfectly. edit: nevermind, I solved with the instructions above. Thank you! |
I tried what @sis0k0 and @berchik said and I got past the error, but now I'm getting this error:
I googled that error and found some posts saying that I have to installl webpack globally, but when I try it by running
|
Webpack should not be installed globally, this is not the reason for this error, I suggest you remove it. There are few things that keep bringing up errors like this; I’ll try to point out few things that seem to cause endless time-waste:
These are the steps you should currently follow:
I believe this will put you back on track. |
@berchik Thanks. Been banging my head for days now, but unfortunately your solution does not work on Windows (tsc 2.4.1, tns 3.1.1, npm 3.10.10, node 6.11.0, webpack 0.7.0) |
@dvdbrk it works ok on my windows 10/64. I use tsc 2.2.1 and ns-webpack 0.7.1, but you have to make sure all of the dependencies versions match. it'll be better if you'll attach your package.json so I can look at it. |
My bad! Yes, your steps and the combination of versions I have posted above do work. My issue was ~0.7.1 in the version ( I had no idea that would not install 0.7.1, but 0.7.2 which does not work). |
Very good. |
Windows 10. I solved the problem only downgrade nativescript-dev-webpack@0.7.2 to version 0.7.1 |
Confirming this as a reproducible issue - test project available on my Windows environment @sis0k0 |
Hello, this is my first time working with Webpack.
When running npm run start-android-bundle I get the following error:
The following is the package.json:
That's on a new test project I created because on the project I was originally working I was getting the same error.
The text was updated successfully, but these errors were encountered: