ionic-team / ionic-app-scripts

App Build Scripts for Ionic Projects
http://ionicframework.com/
MIT License
608 stars 302 forks source link

Cannot find type definition file for ‘@types’ #1535

Open vitaliyhayda opened 5 years ago

vitaliyhayda commented 5 years ago

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

riderx commented 5 years ago

also work in v3.2.4 if you add

    "types": [
      "node"
    ],

in tsconfig compilerOptions

chancezeus commented 4 years ago

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).