VS Code, typings - no IntelliSense

前端 未结 1 1719
慢半拍i
慢半拍i 2021-01-15 01:43

I have a project with the following (shortened) structure.

.
├── app
│   ├── app.css
│   ├── app.js
│   └── home
│       ├── home.css
│       ├── home.html         


        
相关标签:
1条回答
  • 2021-01-15 02:17

    In the meantime (after hours of struggling) I came across my own solution.
    Simply set the compiler option allowJs to true in tsconfig.json and save.

    {
      "compilerOptions": {
        "target": "ES5",
        "module": "commonjs",
        "allowJs": true
      }
    }
    

    This is obviously a bug because it´s default is true according to the docs. I´ve posted this issue additionally on github.

    0 讨论(0)
提交回复
热议问题