Ionic 3 - All imports are unused warning (even though they are being used)

后端 未结 3 740
鱼传尺愫
鱼传尺愫 2021-02-15 16:55

I am getting the following error when trying to run a prod build using the following

ionic cordova build browser --prod

Getting lot

3条回答
  •  花落未央
    2021-02-15 17:21

    Ionic 3.3.0 (2017-05-24) removed the usage of legacy file 'src/declarations.d.ts' as mentioned in the changelog. Removing 'declarations.d.ts' from the src/ folder fixes the unused imports warning.

    For more info check out the GitHub issue.

提交回复
热议问题