Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Não estou conseguindo importar a pagina styles.scss

Compiled with problems:X

ERROR in ./src/pages/style.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/pages/style.scss)

Module Error (from ./node_modules/sass-loader/dist/cjs.js): Cannot find module 'sass' Require stack:

  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\sass-loader\dist\utils.js
  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\sass-loader\dist\index.js
  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\sass-loader\dist\cjs.js
  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\loader-runner\lib\loadLoader.js
  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\loader-runner\lib\LoaderRunner.js
  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\webpack\lib\NormalModule.js
  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\webpack-manifest-plugin\dist\index.js
  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\react-scripts\config\webpack.config.js
  • C:\Users\Usuario\Desktop\react\alura-studies\node_modules\react-scripts\scripts\start.js

ERROR in ./src/pages/style.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/pages/style.scss)

Module build failed (from ./node_modules/resolve-url-loader/index.js): TypeError: Cannot read properties of undefined (reading 'replace') at process (C:\Users\Usuario\Desktop\react\alura-studies\node_modules\resolve-url-loader\lib\engine\postcss.js:28:19) at Object.resolveUrlLoader (C:\Users\Usuario\Desktop\react\alura-studies\node_modules\resolve-url-loader\index.js:213:14)

Esse erro aparece na pagina

1 resposta
solução!

Boa tarde!

Acredito que o erro seja a extensão do seu arquivo. Deveria ser ".css" e não ".scss". Confirme por gentileza se deu certo depois que alterou a extensão desse seu arquivo!