question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to find '@swimlane/ngx-datatable/release/index.css'

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

28reactions
mcheshcommented, Sep 27, 2019

Took me a while to debug this issue, but paths to styles have changes in v16, see changelogs here

v15.x.x and before

    "styles": [
          "./node_modules/@swimlane/ngx-datatable/release/index.css",
          "./node_modules/@swimlane/ngx-datatable/release/themes/material.css",
          "./node_modules/@swimlane/ngx-datatable/release/assets/icons.css",
          "src/styles.css"
        ],

After v16.x.x

  "styles": [
          "./node_modules/@swimlane/ngx-datatable/index.css",
          "./node_modules/@swimlane/ngx-datatable/themes/material.css",
          "./node_modules/@swimlane/ngx-datatable/assets/icons.css",
          "src/styles.css"
        ],
2reactions
ryandmello1198commented, Sep 9, 2020

Took me a while to debug this issue, but paths to styles have changes in v16, see changelogs here

v15.x.x and before

    "styles": [
          "./node_modules/@swimlane/ngx-datatable/release/index.css",
          "./node_modules/@swimlane/ngx-datatable/release/themes/material.css",
          "./node_modules/@swimlane/ngx-datatable/release/assets/icons.css",
          "src/styles.css"
        ],

After v16.x.x

  "styles": [
          "./node_modules/@swimlane/ngx-datatable/index.css",
          "./node_modules/@swimlane/ngx-datatable/themes/material.css",
          "./node_modules/@swimlane/ngx-datatable/assets/icons.css",
          "src/styles.css"
        ],

Where should I put these new paths?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error of loading scss when upgraded Angular 6 ...
I have tried the following steps so far: Uninstall webpack. Remove node_modules. Install webpack gloabally; Run npm i. I'm receiving the ...
Read more >
swimlane ngx datatable css not working - DotnetQueries
In this article you will learn how to solve the problem of css in ngx datatable when we are working with ngx datatable...
Read more >
swimlane/ngx-datatable - Gitter
I attempted to combine the demo code for RxJS and Filtering and was not able to get the filtering to work since the...
Read more >
swimlane/ngx-datatable - npm
ngx -datatable is an Angular table grid component for presenting large and complex data.. Latest version: 20.1.0, last published: 2 months ...
Read more >
Ionic2 using @swimlane/ngx-datatable and ... - Ionic Forum
@import '/node_modules/@swimlane/ngx-datatable/release/index.css'; @import '/node_modules/@swimlane/ngx-datatable/release/material.css';
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found