Troubles with importing classes from Angular 2 modules with Typescript 1.7

后端 未结 5 1695
情书的邮戳
情书的邮戳 2020-12-31 03:14

I am having some trouble understanding how to import classes from Modules in TypeScript, specifically for Angular 2 in Visual Studio 2015 (update 1) with TypeScript 1.7.

5条回答
  •  有刺的猬
    2020-12-31 03:35

    The little red squiggly lines are probably because of your tsconfig.json. At least that is what caused the problem for me. The problem I had was I was using both files[] and excludes[]. This doesn't work as expected and is not a valid config.

    I resolved this problem but I still have the "Uncaught ReferenceError: require is not defined " problem.

提交回复
热议问题