Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode module not found #36

Closed
McRenald opened this issue Feb 5, 2016 · 6 comments
Closed

vscode module not found #36

McRenald opened this issue Feb 5, 2016 · 6 comments

Comments

@McRenald
Copy link

McRenald commented Feb 5, 2016

Hi,
I had followed the guidelines and during "gulp build", the error is raised:

[12:25:45] Using gulpfile ~.vscode\extensions\vscode-cordova\gulpfile.js
[12:25:45] Starting 'build'...
src\cordova.ts(6,25): error TS2307: Cannot find module 'vscode'.
src\utils\cordovaCommandHelper.ts(7,22): error TS2307: Cannot find module 'vscode'.
test\cordova.test.ts(10,25): error TS2307: Cannot find module 'vscode'.
[12:25:48] TypeScript: 3 semantic errors
[12:25:48] TypeScript: emit succeeded (with errors)
[12:25:48] Finished 'build' after 2.73 s

I have installed the npm module 'vscode' but I still have the #error.

Regards
Rénald

@MSLaguana
Copy link
Member

Did you run npm install in the root of the project, or did you manually install the vscode module somewhere?

@McRenald
Copy link
Author

McRenald commented Feb 6, 2016

I have follow the CONTRIBUTION.me, I have done à 'npm install'.

@MSLaguana
Copy link
Member

Do you have a node_modules/vscode folder at the root of your project? If you cloned the repository somewhere inside a folder that already had a node_modules then npm may have decided to install the dependency further up, which would break the path to the typings. You could try creating a node_modules folder in the root of the git repo and then running npm install again to make sure it installs in the expected path.

@McRenald
Copy link
Author

McRenald commented Feb 6, 2016

Yes the folder is present.
I already have deleted twice 'node_modules' and run 'npm install'.
I still have the problem.

@McRenald
Copy link
Author

McRenald commented Feb 8, 2016

I have added in gulp.js a require line to vscode (var vscode = require('vscode');)
On build, error is "Error: Cannot find module 'vscode'"

2016-02-08 14_54_42-node_modules - clover

Really don't understand where is the problem :(

@McRenald
Copy link
Author

McRenald commented Feb 8, 2016

Found the problem!
It's a specific Windows problem with long path:
nodejs/node#1990

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants