ngx-datatable: Failed to find '@swimlane/ngx-datatable/release/index.css'
This error happens if I try to upgrade from version 15.0.2 to version 16.0.0
ERROR in ./src/assets/scss/main.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/assets/scss/main.scss)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Failed to find '@swimlane/ngx-datatable/release/index.css'
in [
/home/travis/build/azerothcore/Keira3/src/assets/scss
]
at resolveModule.catch.catch (/home/travis/build/azerothcore/Keira3/node_modules/postcss-import/lib/resolve-id.js:35:13)
@ ./src/assets/scss/main.scss 1:14-257
@ multi ./src/assets/scss/main.scss
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (5 by maintainers)
Took me a while to debug this issue, but paths to styles have changes in v16, see changelogs here
v15.x.x and before
After v16.x.x
Where should I put these new paths?
please, update the docs
https://swimlane.gitbook.io/ngx-datatable/themes
16.0.2 installed and project served and built with no problem. Thanks
@mhadji that should be fixed in 16.0.2. ng-packagr doesn’t like barrel imports. Thanks for checking these for me.