我正在学习如何使用Angular,Node,TypeScript和Gulp进行构建和应用。
要设置环境变量,我创建了一个.env文件。
现在,当我运行我的项目时,我收到错误:
调试失败。文件扩展名未知。
如何更正此错误?
我有其他空文件名,例如.gitignore和.babelrc,不会导致任何错误,但我没有看到存储这些例外的文件。
[default] Checking started in a separate process...
C:\Users\Niahc\Documents\web apps\Dogma\node_modules\typescript\lib\typescript.j
s:3550
throw e;
^
Error: Debug Failure. File has unknown extension.
at Object.extensionFromPath (C:\Users\Niahc\Documents\web apps\Dogma\node_mo
dules\typescript\lib\typescript.js:3706:15)
at C:\Users\Niahc\Documents\web apps\Dogma\node_modules\typescript\lib\types
cript.js:69734:46
at Array.map (native)
at resolveModuleNamesWorker (C:\Users\Niahc\Documents\web apps\Dogma\node_mo
dules\typescript\lib\typescript.js:69728:158)
at resolveModuleNamesReusingOldState (C:\Users\Niahc\Documents\web apps\Dogm
a\node_modules\typescript\lib\typescript.js:69872:24)
at processImportedModules (C:\Users\Niahc\Documents\web apps\Dogma\node_modu
les\typescript\lib\typescript.js:70920:35)
at findSourceFile (C:\Users\Niahc\Documents\web apps\Dogma\node_modules\type
script\lib\typescript.js:70830:17)
at args (C:\Users\Niahc\Documents\web apps\Dogma\node_modules\typescript\lib
\typescript.js:70719:85)
at getSourceFileFromReferenceWorker (C:\Users\Niahc\Documents\web apps\Dogma
\node_modules\typescript\lib\typescript.js:70692:34)
at processSourceFile (C:\Users\Niahc\Documents\web apps\Dogma\node_modules\t
ypescript\lib\typescript.js:70719:13)
GET /api/things 200 63.369 ms - -