coreui-free-angular-admin-template icon indicating copy to clipboard operation
coreui-free-angular-admin-template copied to clipboard

encapsulation: ViewEncapsulation.None Unknown reference Error while running app

Open banujan6 opened this issue 3 years ago • 0 comments

Downloaded CoreUI 4.1.0 Free Theme from the official website. I am getting these errors while running the app.


Build at: 2022-08-13T14:24:09.523Z - Hash: 0bfe255cbc2abf2e - Time: 756ms

./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Emit

./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Emit

./src/scss/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
9 │ @import "~@coreui/coreui/scss/coreui";
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  src/scss/styles.scss 9:9  root stylesheet

./src/scss/styles.scss - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
9 │ @import "~@coreui/coreui/scss/coreui";
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  src/scss/styles.scss 9:9  root stylesheet

Error: Failed to initialize Angular compilation - Failed to compile entry-point ngx-perfect-scrollbar (`es2015` as esm2015) due to compilation errors:
node_modules/ngx-perfect-scrollbar/fesm2015/ngx-perfect-scrollbar.js:502:32 - error NG1010: encapsulation must be a member of ViewEncapsulation enum from @angular/core
  Value could not be determined statically.

502                 encapsulation: ViewEncapsulation.None,
                                   ~~~~~~~~~~~~~~~~~~~~~~

  node_modules/ngx-perfect-scrollbar/fesm2015/ngx-perfect-scrollbar.js:502:32
    502                 encapsulation: ViewEncapsulation.None,
                                       ~~~~~~~~~~~~~~~~~
    Unknown reference.
node_modules/ngx-perfect-scrollbar/fesm2015/ngx-perfect-scrollbar.js:552:26 - error NG1010: Value



✖ Failed to compile.

Environment Details:

CoreUI Template Version: 4.1.0 Node: v16.15.1 NPM: 8.11.0

No errors in NPM installation (including dev dependencies).

banujan6 avatar Aug 13 '22 14:08 banujan6