Angular 8 - Lazy loading modules : Error TS1323: Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'

前端 未结 7 1011
一个人的身影
一个人的身影 2020-12-04 15:09

When I updated Angular from 7 to Angular 8, getting error for lazy loading modules

I have tried the options, which are there in the angular upgradation guide

7条回答
  •  情歌与酒
    2020-12-04 15:38

    i resolve this error by by doing following steps step 1: "module": "es2015" to "module": "AMD" in tsconfig.json

    step 2: create a new file tsconfig.app.json in app root directory, copy code of Tony Ngo and paste into, then this problem will be resolved.

提交回复
热议问题