Skip to content

vs code cannot find module .vue and package.json #45491

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

Closed
francoisromain opened this issue Mar 10, 2018 · 2 comments
Closed

vs code cannot find module .vue and package.json #45491

francoisromain opened this issue Mar 10, 2018 · 2 comments
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@francoisromain
Copy link

  • VSCode Version: 1.21
  • OS Version: 10.13.3

With Visual Studio Code, and automatic type acquisition enabled, there are [js] Cannot find module errors:

  • on .vue files imported in a .js file (example here)
  • on package.json imported in webpack.config.js (example here)

How is it possible to fix that?

(I asked on stackoverflow first, but didn't have success)

Thank you

@vscodebot vscodebot bot added the javascript JavaScript support issues label Mar 10, 2018
@mjbvz
Copy link
Collaborator

mjbvz commented Mar 13, 2018

Our built-in intelliesense doesn't support resolving vue files. Please try using vetur or a similar vue extension

Support for importing json files is tracked by: microsoft/TypeScript#7071

@mjbvz mjbvz closed this as completed Mar 13, 2018
@mjbvz mjbvz added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Mar 13, 2018
@francoisromain
Copy link
Author

@mjbvz Thank you for your answer. In the project linked above, I use Vetur already and still have errors

@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants