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

[Bug] error trying to start project with npm start #15

Closed
pmacs-carlomagnorocha opened this issue Nov 25, 2019 · 9 comments · Fixed by #21
Closed

[Bug] error trying to start project with npm start #15

pmacs-carlomagnorocha opened this issue Nov 25, 2019 · 9 comments · Fixed by #21
Labels
bug Something isn't working

Comments

@pmacs-carlomagnorocha
Copy link

Version

latest version available at https://www.creative-tim.com/product/argon-dashboard-react?tracking=first-time#

Reproduction link

Operating System

windows 10

Device

PC

Browser & Version

Chrome 78.0.3904.108 64 bits

Steps to reproduce

1 - npm install
2 - npm start

What is expected?

The application starts

What is actually happening?

When I try to start the application the following error occurs:
./src/assets/scss/argon-dashboard-react.scss (./node_modules/css-loader??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/sass-loader/lib/loader.js??ref--6-oneOf-5-3!./src/assets/scss/argon-dashboard-react.scss)
To import Sass files, you first need to install node-sass.
Run npm install node-sass or yarn add node-sass inside your workspace.
Require stack:

  • C:\Users\andre.rocha\Desktop\CIDACS_PAMACS\React\argon-dashboard-react-master\node_modules\sass-loader\lib\loader.js
  • C:\Users\andre.rocha\Desktop\CIDACS_PAMACS\React\argon-dashboard-react-master\node_modules\loader-runner\lib\loadLoader.js
  • C:\Users\andre.rocha\Desktop\CIDACS_PAMACS\React\argon-dashboard-react-master\node_modules\loader-runner\lib\LoaderRunner.js
  • C:\Users\andre.rocha\Desktop\CIDACS_PAMACS\React\argon-dashboard-react-master\node_modules\webpack\lib\NormalModule.js
  • C:\Users\andre.rocha\Desktop\CIDACS_PAMACS\React\argon-dashboard-react-master\node_modules\webpack\lib\NormalModuleFactory.js
  • C:\Users\andre.rocha\Desktop\CIDACS_PAMACS\React\argon-dashboard-react-master\node_modules\webpack\lib\Compiler.js
  • C:\Users\andre.rocha\Desktop\CIDACS_PAMACS\React\argon-dashboard-react-master\node_modules\webpack\lib\webpack.js
  • C:\Users\andre.rocha\Desktop\CIDACS_PAMACS\React\argon-dashboard-react-master\node_modules\react-scripts\scripts\start.js

Solution

I don't have a solution

Additional comments

@TrueGeek
Copy link

Same here. TONS of errors during npm install

@einazare
Copy link
Contributor

Hello there guys,

What nodejs version do you have?
Can you please make sure that you have the latest version: https://nodejs.org/en/ (12.13.1)?

Best,
Manu

@TrueGeek
Copy link

I'm on v12.1.0, that may have been the issue. I ended up downloading your other template: Light Bootstrap React Admin and it worked great!

@einazare
Copy link
Contributor

Hello again,

Please make sure you have the latest node-sass version and also you have the latest LTS version of NodeJS, which at the moment is 12.13.1.
Let me know if that was the issue.

Best,
Manu

@kimhorng
Copy link

Hello,
I also have problem with npm start it showed

'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! argon-dashboard-pro-react@1.0.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the argon-dashboard-pro-react@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Kimhorng\AppData\Roaming\npm-cache_logs\2019-11-29T19_10_26_730Z-debug.log

@einazare
Copy link
Contributor

einazare commented Dec 2, 2019

Hello there, @kimhorng

Please make a video with the following:

  • Download the product
  • Unzip the product
  • Open terminal and cd into the project
  • Run in terminal node -v
  • If working on Mac: Run npm run install:clean
  • If working on Windows: Run npm install
  • If working on Windows: Run npm start
  • Showcase the issue

Best,
Manu

@cai0m3ga
Copy link

I'am having the exact same problem here, just downloaded today both the project and nodeJS but i get the error bellow (also attached print):

PS C:\argon-dashboard-react-master> npm start

argon-dashboard-react@1.0.0 start C:\argon-dashboard-react-master
react-scripts start
Starting the development server...
Failed to compile.

./src/assets/scss/argon-dashboard-react.scss (./node_modules/css-loader??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/sass-loader/lib/loader.js??ref--6-oneOf-5-3!./src/assets/scss/argon-dashboard-react.scss)
To import Sass files, you first need to install node-sass.
Run npm install node-sass or yarn add node-sass inside your workspace.
Require stack:

  • C:\argon-dashboard-react-master\node_modules\sass-loader\lib\loader.js
  • C:\argon-dashboard-react-master\node_modules\loader-runner\lib\loadLoader.js
  • C:\argon-dashboard-react-master\node_modules\loader-runner\lib\LoaderRunner.js
  • C:\argon-dashboard-react-master\node_modules\webpack\lib\NormalModule.js
  • C:\argon-dashboard-react-master\node_modules\webpack\lib\NormalModuleFactory.js
  • C:\argon-dashboard-react-master\node_modules\webpack\lib\Compiler.js
  • C:\argon-dashboard-react-master\node_modules\webpack\lib\webpack.js
  • C:\argon-dashboard-react-master\node_modules\react-scripts\scripts\start.js

print

My node version:

PS C:\argon-dashboard-react-master> node -v
v12.14.1

print

@cai0m3ga
Copy link

Guys i think i just found out how to solve this, my problem was with the "node-sass" version in the "package.json" file, i found out that the current version on the project is "4.11.0" and works with node 11.x:

https://github.com/sass/node-sass

So i changed my "node-sass" version to "4.12.0" >> deleted the "node_modules" folder >> "npm i"

Now it seens to work just fine.

print

print

@einazare einazare added the bug Something isn't working label Feb 6, 2020
einazare added a commit that referenced this issue Feb 7, 2020
Closes #17
Closes #15
Closes #12
Closes #3
@harikaran003
Copy link

Compiled with problems:
×
ERROR in ./src/Assets/scss/argon-dashboard-pro-react.scss?v1.2.1 (./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/argon-dashboard-pro-react.scss?v1.2.1)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: $color: linear-gradient(to right, #FE932C, #F75100) is not a color.

255 │ $link-hover-color: darken($link-color, 15%) !default;
│ ^^^^^^^^^^^^^^^^^^^^^^^^

src\Assets\scss\custom_variables.scss 255:20 @import
src\Assets\scss\argon-dashboard-pro-react.scss 27:9 root stylesheet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants