Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 节点错误:解析url加载程序:CSS错误_Node.js_Reactjs_Npm_Node Sass_Resolve Url Loader - Fatal编程技术网

Node.js 节点错误:解析url加载程序:CSS错误

Node.js 节点错误:解析url加载程序:CSS错误,node.js,reactjs,npm,node-sass,resolve-url-loader,Node.js,Reactjs,Npm,Node Sass,Resolve Url Loader,我试图在我的界面上以dev服务器的身份运行一个react项目,if给出了下面和标题中显示的错误。当我在我的电脑上运行相同的配置时,我没有这个问题。(我试着创造同样的条件,但就是不起作用) 错误: ./src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0 (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??pos

我试图在我的界面上以dev服务器的身份运行一个react项目,if给出了下面和标题中显示的错误。当我在我的电脑上运行相同的配置时,我没有这个问题。(我试着创造同样的条件,但就是不起作用)

错误:

./src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0 (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/lib/loader.js??ref--6-oneOf-5-4!./src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0)
Error: resolve-url-loader: CSS error
  source-map information is not available at url() declaration (found orphan CR, try removeCR option)
浏览器控制台出现完全错误:(Chrome)

Fetch API无法加载file:///C:/Users/Max-T/Documents/Sources/StaffMangerV2/Oauth2Manager-Web/src/assets/scss/black-dashboard-pro-react.scss。对于CORS请求,URL方案必须为“http”或“https”。
(匿名)@index.js:1679
s@index.js:499
(匿名)@index.js:479
e、 @index.js:536
S@index.js:1517
i@index.js:1534
(匿名)@index.js:1541
(匿名)@index.js:1530
(匿名)@index.js:1699
(匿名)@index.js:1673
s@index.js:499
(匿名)@index.js:479
e、 @index.js:536
S@index.js:1517
i@index.js:1534
(匿名)@index.js:1541
(匿名)@index.js:1530
q@index.js:1726
I@index.js:1658
G@index.js:1817
(匿名)@index.js:1831
(匿名)@index.js:1848
(匿名)@index.js:1332
错误(异步)
u@index.js:1334
K@index.js:1847
ce@index.js:1951
./node_modules/react dev utils/webpackHotDevClient.js@webpackHotDevClient.js:38
__webpack_require__@bootstrap:785
fn@bootstrap:150
0@store.js:18
__webpack_require__@bootstrap:785
checkDeferredModules@bootstrap:45
webpackJsonpCallback@bootstrap:32
(匿名)@main.chunk.js:1
js:1679获取API无法加载file:///C:/Users/Max-T/Documents/Sources/StaffMangerV2/Oauth2Manager Web/node_modules/resolve url loader/index.js。对于CORS请求,URL方案必须为“http”或“https”。
(匿名)@index.js:1679
s@index.js:499
(匿名)@index.js:479
e、 @index.js:536
S@index.js:1517
i@index.js:1534
(匿名)@index.js:1541
(匿名)@index.js:1530
(匿名)@index.js:1699
(匿名)@index.js:1673
s@index.js:499
(匿名)@index.js:479
e、 @index.js:536
S@index.js:1517
i@index.js:1534
(匿名)@index.js:1541
(匿名)@index.js:1530
q@index.js:1726
I@index.js:1658
G@index.js:1817
(匿名)@index.js:1831
(匿名)@index.js:1848
(匿名)@index.js:1332
错误(异步)
u@index.js:1334
K@index.js:1847
ce@index.js:1951
./node_modules/react dev utils/webpackHotDevClient.js@webpackHotDevClient.js:38
__webpack_require__@bootstrap:785
fn@bootstrap:150
0@store.js:18
__webpack_require__@bootstrap:785
checkDeferredModules@bootstrap:45
webpackJsonpCallback@bootstrap:32
(匿名)@main.chunk.js:1
main.chunk.js:10未捕获错误:模块构建失败(来自./node\u modules/resolve url loader/index.js):
错误:解析url加载程序:CSS错误
url()声明中没有源映射信息(找到孤立CR,请尝试removeCR选项)
在文件://C:\Users\Max-T\Documents\Sources\StaffMangerV2\Oauth2Manager-Web\src\assets\scss\black dashboard-pro-react.scss:13239:3
编码错误(C:\Users\Max-T\Documents\Sources\StaffMangerV2\Oauth2Manager Web\node\u modules\resolve url loader\index.js:219:12)
在onFailure时(C:\Users\Max-T\Documents\Sources\StaffMangerV2\Oauth2Manager Web\node\u modules\resolve url loader\index.js:176:14)
在Object../node_modules/css loader/dist/cjs.js/node_modules/postss loader/src/index.js/node_modules/resolve url loader/index.js/node_modules/sass-loader/lib/loader.js/src/assets/scss/black dashboard pro react.scss?v=1.0.0(http://localhost:3000/static/js/main.chunk.js:10:7)
在需要的网页上(http://localhost:3000/static/js/bundle.js:786:30)
在fn(http://localhost:3000/static/js/bundle.js:151:20)
at Object../src/assets/scss/black dashboard pro react.scss?v=1.0.0(http://localhost:3000/static/js/main.chunk.js:744:15)
在需要的网页上(http://localhost:3000/static/js/bundle.js:786:30)
在fn(http://localhost:3000/static/js/bundle.js:151:20)
在模块处../src/index.js(http://localhost:3000/static/js/main.chunk.js:9220:109)
在需要的网页上(http://localhost:3000/static/js/bundle.js:786:30)
在fn(http://localhost:3000/static/js/bundle.js:151:20)
在Object.0(http://localhost:3000/static/js/main.chunk.js:9988:18)
在需要的网页上(http://localhost:3000/static/js/bundle.js:786:30)
在checkDeferredModules上(http://localhost:3000/static/js/bundle.js:46:23)
在Array.webpackJsonpCallback[作为推送](http://localhost:3000/static/js/bundle.js:33:19)
在http://localhost:3000/static/js/main.chunk.js:1:85
./node_modules/css loader/dist/cjs.js/node_modules/postss loader/src/index.js/node_modules/resolve url loader/index.js/node_modules/sass-loader/lib/loader.js/src/assets/scss/black dashboard pro react.scss?v=1.0.0@main.chunk.js:10
__webpack_require__@bootstrap:785
fn@bootstrap:150
./src/assets/scss/black dashboard pro react.scss?v=1.0.0@black dashboard pro react.scss?v=1.0.0:1
__webpack_require__@bootstrap:785
fn@bootstrap:150
/src/index.js@index.css?e32c:37
__webpack_require__@bootstrap:785
fn@bootstrap:150
0@store.js:18
__webpack_require__@bootstrap:785
checkDeferredModules@bootstrap:45
webpackJsonpCallback@bootstrap:32
(匿名)@main.chunk.js:1
index.js:1375./src/assets/scss/black dashboard pro react.scss?v=1.0.0(./node_modules/css loader/dist/cjs.js??ref--6-oneOf-5-1!。/node_modules/postss loader/src??postss!。/node_modules/resolve url loader??ref--6-oneOf-5-3!。/node_modules/sass loader/lib loader.js ref 6-oneOf-5-4!。/src/assets/scss/black dashboard pro resact?v=1.0.0)
错误:解析url加载程序:CSS错误
url()声明中没有源映射信息(找到孤立CR,请尝试removeCR选项)

我也有同样的错误。要解决这个问题,我必须导航到

节点\模块/解析url加载程序

打开

index.js


var options
下,将
removeCR
从“false”更改为“true”。

好的,解决方案必须与某些包配置或其他配置相关
Fetch API cannot load file:///C:/Users/Max-T/Documents/Sources/StaffMangerV2/Oauth2Manager-Web/src/assets/scss/black-dashboard-pro-react.scss. URL scheme must be "http" or "https" for CORS request.
(anonymous) @ index.js:1679
s @ index.js:499
(anonymous) @ index.js:479
e.<computed> @ index.js:536
S @ index.js:1517
i @ index.js:1534
(anonymous) @ index.js:1541
(anonymous) @ index.js:1530
(anonymous) @ index.js:1699
(anonymous) @ index.js:1673
s @ index.js:499
(anonymous) @ index.js:479
e.<computed> @ index.js:536
S @ index.js:1517
i @ index.js:1534
(anonymous) @ index.js:1541
(anonymous) @ index.js:1530
q @ index.js:1726
I @ index.js:1658
G @ index.js:1817
(anonymous) @ index.js:1831
(anonymous) @ index.js:1848
(anonymous) @ index.js:1332
error (async)
u @ index.js:1334
K @ index.js:1847
ce @ index.js:1951
./node_modules/react-dev-utils/webpackHotDevClient.js @ webpackHotDevClient.js:38
__webpack_require__ @ bootstrap:785
fn @ bootstrap:150
0 @ store.js:18
__webpack_require__ @ bootstrap:785
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
index.js:1679 Fetch API cannot load file:///C:/Users/Max-T/Documents/Sources/StaffMangerV2/Oauth2Manager-Web/node_modules/resolve-url-loader/index.js. URL scheme must be "http" or "https" for CORS request.
(anonymous) @ index.js:1679
s @ index.js:499
(anonymous) @ index.js:479
e.<computed> @ index.js:536
S @ index.js:1517
i @ index.js:1534
(anonymous) @ index.js:1541
(anonymous) @ index.js:1530
(anonymous) @ index.js:1699
(anonymous) @ index.js:1673
s @ index.js:499
(anonymous) @ index.js:479
e.<computed> @ index.js:536
S @ index.js:1517
i @ index.js:1534
(anonymous) @ index.js:1541
(anonymous) @ index.js:1530
q @ index.js:1726
I @ index.js:1658
G @ index.js:1817
(anonymous) @ index.js:1831
(anonymous) @ index.js:1848
(anonymous) @ index.js:1332
error (async)
u @ index.js:1334
K @ index.js:1847
ce @ index.js:1951
./node_modules/react-dev-utils/webpackHotDevClient.js @ webpackHotDevClient.js:38
__webpack_require__ @ bootstrap:785
fn @ bootstrap:150
0 @ store.js:18
__webpack_require__ @ bootstrap:785
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
main.chunk.js:10 Uncaught Error: Module build failed (from ./node_modules/resolve-url-loader/index.js):
Error: resolve-url-loader: CSS error
  source-map information is not available at url() declaration (found orphan CR, try removeCR option)
  at file://C:\Users\Max-T\Documents\Sources\StaffMangerV2\Oauth2Manager-Web\src\assets\scss\black-dashboard-pro-react.scss:13239:3
    at encodeError (C:\Users\Max-T\Documents\Sources\StaffMangerV2\Oauth2Manager-Web\node_modules\resolve-url-loader\index.js:219:12)
    at onFailure (C:\Users\Max-T\Documents\Sources\StaffMangerV2\Oauth2Manager-Web\node_modules\resolve-url-loader\index.js:176:14)
    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/lib/loader.js?!./src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0 (http://localhost:3000/static/js/main.chunk.js:10:7)
    at __webpack_require__ (http://localhost:3000/static/js/bundle.js:786:30)
    at fn (http://localhost:3000/static/js/bundle.js:151:20)
    at Object../src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0 (http://localhost:3000/static/js/main.chunk.js:744:15)
    at __webpack_require__ (http://localhost:3000/static/js/bundle.js:786:30)
    at fn (http://localhost:3000/static/js/bundle.js:151:20)
    at Module../src/index.js (http://localhost:3000/static/js/main.chunk.js:9220:109)
    at __webpack_require__ (http://localhost:3000/static/js/bundle.js:786:30)
    at fn (http://localhost:3000/static/js/bundle.js:151:20)
    at Object.0 (http://localhost:3000/static/js/main.chunk.js:9988:18)
    at __webpack_require__ (http://localhost:3000/static/js/bundle.js:786:30)
    at checkDeferredModules (http://localhost:3000/static/js/bundle.js:46:23)
    at Array.webpackJsonpCallback [as push] (http://localhost:3000/static/js/bundle.js:33:19)
    at http://localhost:3000/static/js/main.chunk.js:1:85
./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/lib/loader.js?!./src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0 @ main.chunk.js:10
__webpack_require__ @ bootstrap:785
fn @ bootstrap:150
./src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0 @ black-dashboard-pro-react.scss?v=1.0.0:1
__webpack_require__ @ bootstrap:785
fn @ bootstrap:150
./src/index.js @ index.css?e32c:37
__webpack_require__ @ bootstrap:785
fn @ bootstrap:150
0 @ store.js:18
__webpack_require__ @ bootstrap:785
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
index.js:1375 ./src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0 (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/lib/loader.js??ref--6-oneOf-5-4!./src/assets/scss/black-dashboard-pro-react.scss?v=1.0.0)
Error: resolve-url-loader: CSS error
  source-map information is not available at url() declaration (found orphan CR, try removeCR option)
@import "variables";
@import "colored-balls";
@import "glowing-ball";
@import "pixel-loader";
@import "square-box";
@import "circle-loader";
@import "jumping-dots-loader";
[core]
    autocrlf = false