Node Error: resolve-url-loader: CSS error

前端 未结 4 1982
星月不相逢
星月不相逢 2021-02-19 17:35

I am trying to run a react project as dev server on my surface, and if gives me the error shown below and in the title. When I am running the same config on my pc I am not havin

相关标签:
4条回答
  • 2021-02-19 18:04

    Another option would be to configure the IDE or Editor for the End of Line Sequence type, change from CRLF to LF ... They are only alternatives ... try it.

    0 讨论(0)
  • 2021-02-19 18:13

    well, the solution must be related to some package configuration or something. But I want to share the solution that I applied:

    @import "variables";
    @import "colored-balls";
    @import "glowing-ball";
    @import "pixel-loader";
    @import "square-box";
    @import "circle-loader";
    @import "jumping-dots-loader";
    

    Look for the file that cannot be resolved by the module in charge (Look for the error file). with ctrl + click ... and comment one by one until you see which of them you did not read, when you found them: you can, comment on them, Or delete them. They are preloaders, I did not need them.

    /* @import "colored-balls"; */

    /* @import "pixel-loader"; */

    0 讨论(0)
  • 2021-02-19 18:26

    Checkout git repo with :

    [core]
        autocrlf = false
    

    Because Windows CRLF are not supported by resolve-url-loader, using node-sass but Options not available to setup with Create-React-App. See https://github.com/sass/node-sass/issues/2756

    0 讨论(0)
  • 2021-02-19 18:27

    I had this same error. To fix this, I had to navigate to

    node_modules/resolve-url-loader

    open

    index.js

    and under var options change removeCR from "false" to "true".

    0 讨论(0)
提交回复
热议问题