Lazy loading modules : Error TS1323: Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'
您正在使用动态导入,因此您必须像这样更改tsconfig.json
才能将代码定位到esnext
模块
将tsconfig.app.json
中的 "module": "esnext"
去掉,像这样:
您正在使用动态导入,因此您必须像这样更改tsconfig.json
才能将代码定位到esnext
模块
将tsconfig.app.json
中的 "module": "esnext"
去掉,像这样: