CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'. #856

Closed Ankit0203 closed 4 years ago

Ankit0203 commented 4 years ago

when i install npm then this error throw

d successfully.

ERROR in src/app/app-routing.module.ts:43:28 - error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'.

43        loadChildren: () => import('./component/component.module').then(m => m.ComponentsModule)
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~