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
The following is the error message . Please help to see how to solve it. Thank you for your support .
一、execute "npm install --legacy-peer-deps " error
Compiling @angular/cdk/drag-drop : es2015 as esm2015
Compiling @angular/cdk/keycodes : es2015 as esm2015
Compiling @angular/cdk/layout : es2015 as esm2015
Compiling @angular/cdk/observers : es2015 as esm2015
Compiling @angular/cdk/overlay : es2015 as esm2015
Compiling @angular/cdk/platform : es2015 as esm2015
Error: Failed to compile entry-point @angular/cdk/drag-drop (es2015 as esm2015) due to compilation errors:
node_modules/@angular/cdk/scrolling/scrolling-module.d.ts:8:22 - error NG6003: Appears in the NgModule.exports of DragDropModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.
1 declare type StrictNullChecksWrapper<Name extends string, Type> = undefined extends null ? strictNullChecks must be true in tsconfig to use ${Name} : Type;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core/node_modules/ajv/dist/types/json-schema.d.ts:1:151 - error TS1005: ';' expected.
1 declare type StrictNullChecksWrapper<Name extends string, Type> = undefined extends null ? strictNullChecks must be true in tsconfig to use ${Name} : Type;
~
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
三、Browser console error
GET http://localhost:4200/ 404 (Not Found)
Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'none'". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
The text was updated successfully, but these errors were encountered:
The following is the error message . Please help to see how to solve it. Thank you for your support .
一、execute "npm install --legacy-peer-deps " error
Compiling @angular/cdk/drag-drop : es2015 as esm2015
Compiling @angular/cdk/keycodes : es2015 as esm2015
Compiling @angular/cdk/layout : es2015 as esm2015
Compiling @angular/cdk/observers : es2015 as esm2015
Compiling @angular/cdk/overlay : es2015 as esm2015
Compiling @angular/cdk/platform : es2015 as esm2015
Error: Failed to compile entry-point @angular/cdk/drag-drop (
es2015
as esm2015) due to compilation errors:node_modules/@angular/cdk/scrolling/scrolling-module.d.ts:8:22 - error NG6003: Appears in the NgModule.exports of DragDropModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.
This lik
二、execute “ng serve -o” error
PS D:\company_work_project\shopizer\shopizer-admin-snyk-fix-d039072a6e2072b60be3e8509cc89dbb> ng serve -o
√ Browser application bundle generation complete.
Initial Chunk Files | Names | Size
main.js | main | 0 bytes
polyfills.js | polyfills | 0 bytes
runtime.js | runtime | 0 bytes
scripts.js | scripts | 0 bytes
styles.css, styles.js | styles | 0 bytes
vendor.js | vendor | 0 bytes
Build at: 2023-02-19T06:08:36.689Z - Hash: aaabff7d11493e0f3b82 - Time: 60189ms
Error: node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core/node_modules/ajv/dist/types/json-schema.d.ts:1:92 - error TS1005: '?' expected.
1 declare type StrictNullChecksWrapper<Name extends string, Type> = undefined extends null ?
strictNullChecks must be true in tsconfig to use ${Name}
: Type;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core/node_modules/ajv/dist/types/json-schema.d.ts:1:151 - error TS1005: ';' expected.
1 declare type StrictNullChecksWrapper<Name extends string, Type> = undefined extends null ?
strictNullChecks must be true in tsconfig to use ${Name}
: Type;~
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
三、Browser console error
GET http://localhost:4200/ 404 (Not Found)
Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'none'". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
The text was updated successfully, but these errors were encountered: