javascript - VS 2015 Angular 2 import modules cannot be resolved - Stack Overflow
I have created an empty web project and added files using
Angular-cli
I can run the website fine using ng buid/serve but I get below error in editor:
I read somewhere that it is Resharper error in version 9, so I upgraded my Resharper to latest which fixes the problem but it cannot resolve the modules. any suggestions?
Edit: created a new typescript class and it's giving below error
I have created an empty web project and added files using
Angular-cli
https://scotch.io/tutorials/use-the-angular-cli-for-faster-angular-2-projects
I can run the website fine using ng buid/serve but I get below error in editor:
I read somewhere that it is Resharper error in version 9, so I upgraded my Resharper to latest which fixes the problem but it cannot resolve the modules. any suggestions?
Edit: created a new typescript class and it's giving below error
Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Jun 27, 2016 at 12:29 Kamran PervaizKamran Pervaiz 1,9415 gold badges24 silver badges44 bronze badges 2- Which update of VS 2015 do you have? – Dima Kuzmich Commented Jul 11, 2016 at 10:53
- I have installed VS2015 with update 2. – Kamran Pervaiz Commented Jul 11, 2016 at 12:54
3 Answers
Reset to default 6 +50As far as I know, Resharper still doesn't support TypeScript latest versions. It looks like Resharper ignores tsconfig.json file that exists inside src
folder. I suggest you try VS Code instead. It's free and has much better support of new TypeScript features.
If you still want to stay with VS 2015, you can configure Resharper not to analyze .ts
files. Here is how to do it.
open npm and run npm install typings
and then typings install
and if after that it still doesn't work, try build the project
Try installing VS2015 update 3. I had that error before and I was due to my typescript version installed in VS2015.
- 忘记安卓电脑 ChromeWin双系统PC更有前途
- 电脑展趋势分析 移动终端大热DIY被弱化
- 常受电脑辐射的白领男易生闺女?
- c++ - Why is my OpenGL application rendering a 3D model with unexpected transparency? - Stack Overflow
- google apps script - How do I make it so specific cells get deleted or set to a specific # each time the workbook is opened? the
- apache spark - Can't save pyspark ML model :py4j.protocol.Py4JJavaError: An error occurred while calling o577.save. : ja
- azure active directory - Entra External Id: Include values provided by token requester in access token claims - Stack Overflow
- testrigor - Exception upon running tests to run database query - Stack Overflow
- Receiver incorrectly registered? Android, Kotlin - Stack Overflow
- reactjs - Flatlist scrolling freeze - Stack Overflow
- testing - Cypress does not load static fonts - Stack Overflow
- Angular post request body is null when received by Spring API - Stack Overflow
- c++ - templates are instantiated despite having extern template - Stack Overflow
- postgresql - How do I connect my AIRFLOW which is installed on WSL to POSTGRES DATABASE which is installed on windows environmen
- React native - OCR of price tag - Stack Overflow
- python - pickle port? loading a pickle with data when I've redefined the object code - Stack Overflow
- r - How to construct a grouped line plot using ggstatsplot without faceting? - Stack Overflow