Cannot find module './..../x.html' - TsLint / Angular -Metor

I have a problem with TsLint of my angular -meteor project.

I am currently following the guide at http://www.angular-meteor.com/tutorials/socially/angular2/routing-and-multiple-views . Whenever I try to import the built-in template-html file, I get an error that the module does not exist. However, the code works fine when I compile and run it.

How can I change my tslint compiler so that it understands these modules and therefore it stops spamming with these “errors”. I am using Visual Studio Code as a source code editor.

Here you can find what the errors look like. Thank!

enter image description here

+4
1

, ( , Ionic 2, Angular 2)

import template from './views/question-details';

Netbeans 8.2 dev edition + nbts https://github.com/Everlaw/nbts/releases

0

Source: https://habr.com/ru/post/1649527/


All Articles