-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
vetur script validation error: cannot find module, but can use this module, no problem #1017
Comments
Where does Can you try to give a minimal repro out of https://github.com/octref/veturpack? |
it's a NPM module in Private npm Registries |
Where does it resolves to? Vetur should try |
@octref Just wanted to add on that I've experienced this issue. In this case, the dependency is in |
@jgilchrist I thought yarn workspace symlink local |
Sure thing - the folder structure is roughly:
I'm opening Vetur on the top level folder and working on all three projects, but am getting the 'cannot find module' in all three. |
This comment suggests that this is expected and that all dependencies that can be hoisted to the workspace root will be. Is it possible that this is causing the issues (i.e. Vetur isn't checking the workspace root for these dependencies?) |
@k1nghat Yours is a different issue. @jgilchrist Sorry for late response, Vetur only searches for the |
Thanks @octref for that information. I didn't know that I cannot have my SPA in a subfolder. Besides, a was getting dependency resolution error using a CI pipeline in Azure DevOps, the exact same error that @yinX0412 was talking about. After your comment I tried to move all vue files to root folder and it is working now :D I've been digging around for like 5 hours to solve that xD. Thanks a lot <3 |
Hi! I had the same issue here. I'm in a mono-repo setup too, using Yarn workspaces, so at first, I was thinking something around node_modules. It turns out that if I added type definition ( Now, I just have to find a way to make rollup export typescript declaration properly, but that's another story. I hope it helps! |
the validation of script has a bug
![image](https://user-images.githubusercontent.com/30461180/49559411-b6d2d780-f949-11e8-889d-392eb0e96a3d.png)
![image](https://user-images.githubusercontent.com/30461180/49559442-cbaf6b00-f949-11e8-8f05-ff3402aa62a7.png)
if i import a module which i has developed , it will tell me cannot find this module, bug i can use it,when the script's lang is ts
The text was updated successfully, but these errors were encountered: