-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
With some files, VS Code cannot find modules that exist #10391
Comments
I have noticed that if I use |
More to this issue: I get the errors every time I create a new folder and ts/tsx file inside. Unfortunately, the workaround I've suggested in the previous comment doesn't work. |
I've published the source code. To reproduce this issue:
|
@waderyan let me know when you need assistance |
I have reproduced this per @jankalfus's instructions. I'm seeing a "Cannot Find Module" when I hover over Developer shows a seemingly unrelated error. It seems like typings directory is configured correctly. |
Ok this is strange... I reopened the project to grab another screen shot and this is what I saw. Everything looks good now. I retraced my steps.
Looks good again. Ping @dbaeumer please advise what to try next. |
@waderyan there is not much you can do. I would move it to the TS team since at the end of the day the error message is generated by the tsserver. |
Moved to TypeScript |
Sometimes when I open my project, VS Code is unable to find imported external modules. I've got typings for the modules installed, all files in the project compiles fine using
tsc
, but I get red squiggly lines in the editor. The weird thing is that I get the squiggly lines only for some .tsx files, while it works for others.The file src/web/App.tsx is fine:
![web](https://cloud.githubusercontent.com/assets/12714276/17553706/9f148050-5f07-11e6-8721-fd1e3a99cac2.png)
While I get squiggly lines for the file src/native/App.tsx:
![native](https://cloud.githubusercontent.com/assets/12714276/17553710/a3c8f266-5f07-11e6-9ab0-69ce23c46a0c.png)
My tsconfig.json content is the following:
Both
react
andreact-native
are installed as global typings.Unfortunately, I cannot post the source code right now, but basically, the structure of the source files is as following:
Any ideas?
The text was updated successfully, but these errors were encountered: