Giter Site home page Giter Site logo

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined about argon-dashboard-react HOT 2 CLOSED

creativetimofficial avatar creativetimofficial commented on July 20, 2024
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined

from argon-dashboard-react.

Comments (2)

Rizzeol avatar Rizzeol commented on July 20, 2024 6

Hi @einazare
my nodejs version is 12.13.1

It seems like nodejs 12.x have Active LTS starting from 2019.10.21

New update: Issue Solved

updated react-scripts package from v2.8.1 to v3.4.1

If you face same issue follow this:

  1. Go to NPM react-script package website and copy npm i react-scripts
  2. Remove react-scripts v2.8.1 from your package.json file and run npm i react-scripts in your terminal. This will install latest react-scripts package. It is v3.4.1 for me now.
  3. I received the following error. If it's working for you that's great. If you are getting same error, follow the next step:

./src/assets/scss/argon-dashboard-react.scss (./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/dist/cjs.js??ref--6-oneOf-5-4!./src/assets/scss/argon-dashboard-react.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (72)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.11.0

  1. Go to your terminal and run this command.
    npm uninstall node-sass && npm install node-sass

The above error means your node version is not compatible with node-sass installed in your project so you have to update it or install it again.

This must solve the issue. At least it worked for me.

Thanks @einazare for your response. Appreciate it.
Cheers.

from argon-dashboard-react.

einazare avatar einazare commented on July 20, 2024

Hello there, @Rizzeol ,

What version of NodeJS do you use?
If you do not have the LTS version, please update it to the LTS version.
If the issue persists, then change the react-scripts from our package.json file to the latest one from npmjs.

Best,
Manu

from argon-dashboard-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.