You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
When installing the datatables dependency I have an error in console:
βΉ Using package manager: npm
β Found compatible package version: [email protected].
β Package information loaded.
The package [email protected] will be installed and executed.
Would you like to proceed? Yes
β Package successfully installed.
An unhandled exception occurred: Cannot use import statement outside a module
See "/private/var/folders/6j/16zvl6693lb48nw2l2mfqvgwt44vzf/T/ng-zHMNcn/angular-errors.log" for further details.
And the content of the the angular-errors.log:
[error] /Users/mkrg/git/repos/angular/test/test/node_modules/angular-datatables/schematics/src/ng-add/index.js:1
import { chain } from '@angular-devkit/schematics';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:988:16)
at Module._compile (internal/modules/cjs/loader.js:1036:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at new ExportStringRef (/Users/mkrg/git/repos/angular/test/test/node_modules/@angular-devkit/schematics/tools/export-ref.js:19:25)
at SchematicEngineHost._resolveReferenceString (/Users/mkrg/git/repos/angular/test/test/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:96:21)
at SchematicEngineHost._resolveReferenceString (/Users/mkrg/git/repos/angular/test/test/node_modules/@angular/cli/models/schematic-engine-host.js:69:22)
πͺ² bug report
When installing the datatables dependency I have an error in console:
And the content of the the angular-errors.log:
π¬ Minimal Reproduction
to reporduce:
π Your Environment
ng --version:
Just tried to update ng to latest vertsion (13.0.3) with no change
The text was updated successfully, but these errors were encountered: