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

Cannot build the lastest code #48

Open
zixincheng opened this issue Nov 3, 2023 · 0 comments
Open

Cannot build the lastest code #48

zixincheng opened this issue Nov 3, 2023 · 0 comments

Comments

@zixincheng
Copy link

zixincheng commented Nov 3, 2023

Version

1.2.2

Reproduction link

https://github.com/creativetimofficial/black-dashboard-react

Operating System

windows

Device

PC

Browser & Version

Chrome

Steps to reproduce

  1. Download the code
  2. npm install
  3. npm start

What is expected?

The project should build and run successfully

What is actually happening?

[email protected] start

react-scripts start
Failed to compile.

Cannot read properties of undefined (reading 'indexOf')
WARNING in ./src/assets/scss/black-dashboard-react.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[1].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[4]!./src/assets/scss/black-dashboard-react.scss)
Module Warning (from ./node_modules/resolve-url-loader/index.js):
resolve-url-loader: webpack misconfiguration
webpack or the upstream loader did not supply a source-map

ERROR in ./src/assets/scss/black-dashboard-react.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[1].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[4]!./src/assets/scss/black-dashboard-react.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot read properties of undefined (reading 'indexOf')

ERROR in ./src/assets/scss/black-dashboard-react.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[1].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[4]!./src/assets/scss/black-dashboard-react.scss)
Module build failed (from ./node_modules/resolve-url-loader/index.js):
TypeError: Cannot read properties of undefined (reading 'replace')
at process (C:\Users\username\Downloads\code_gui\node_modules\resolve-url-loader\lib\engine\postcss.js:28:19)
at Object.resolveUrlLoader (C:\Users\username\Downloads\code_gui\node_modules\resolve-url-loader\index.js:213:14)


Solution

Additional comments

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