Ionic-app-scripts: Cannot find type definition file for ‘@types’

Created on 28 Jul 2019  Â·  2Comments  Â·  Source: ionic-team/ionic-app-scripts

The full issue described here, for v3.2.4:
https://forum.ionicframework.com/t/cannot-find-type-definition-file-for-types/164794

Rolling back to v3.2.3 works

Most helpful comment

also work in v3.2.4 if you add

    "types": [
      "node"
    ],

in tsconfig compilerOptions

All 2 comments

also work in v3.2.4 if you add

    "types": [
      "node"
    ],

in tsconfig compilerOptions

I ran into this as well and especially for slightly larger projects it means a whole lot of additional configuration if you depend on more than just the "node" typings. In my opinion this is a major regression compared to v3.2.3 and it should be reverted or at least the build tools should scan and inject the packages in node_modules/@types automatically without any user intervention, especially since this breaks the default behaviour of the typescript compiler (default behaviour is to include all of node_modules/@types automatically without any user intervention).

Was this page helpful?
0 / 5 - 0 ratings