Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRLF error for the css #653

Open
thebravoman opened this issue May 27, 2020 · 0 comments
Open

CRLF error for the css #653

thebravoman opened this issue May 27, 2020 · 0 comments

Comments

@thebravoman
Copy link

thebravoman commented May 27, 2020

npm i on linux.
@import the css into my scss.
Using webpack

I get

unify_admin_style.scss:21 Uncaught (in promise) Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):

@import "malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat";
^
      File to import not found or unreadable: malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.
      in /home/user/project/app/javascript/unify_admin_style.scss (line 21, column 1)
    at Object../node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js?!./app/javascript/unify_admin_style.scss (unify_admin_style.scss:21)
    at __webpack_require__ (bootstrap:63)
    at Object../app/javascript/unify_admin_style.scss (unify_admin_style.scss:2)
    at __webpack_require__ (bootstrap:63)
    at __webpack_require__.t (bootstrap:161)

The reason is that this file has CRLF and LF as I think, is the node_modules convention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant