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

The path argument must be of type string #25

Closed
peter-palmer opened this issue Mar 13, 2020 · 5 comments
Closed

The path argument must be of type string #25

peter-palmer opened this issue Mar 13, 2020 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@peter-palmer
Copy link

peter-palmer commented Mar 13, 2020

Hello I just downloaded the project, made "npm i" and "npm start", the project compiles but when I get into google chrome there is an error message that says:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:112:11)
at Object.join (path.js:375:7)
at noopServiceWorkerMiddleware (C:\Users\pgarc\Downloads\argon-dashboard-react-master\node_modules\react-dev-utils\noopServiceWorkerMiddleware.js:14:26)
at Layer.handle [as handle_request] (C:\Users\pgarc\Downloads\argon-dashboard-react-master\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\Users\pgarc\Downloads\argon-dashboard-react-master\node_modules\express\lib\router\index.js:317:13)
at C:\Users\pgarc\Downloads\argon-dashboard-react-master\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\Users\pgarc\Downloads\argon-dashboard-react-master\node_modules\express\lib\router\index.js:335:12)
at next (C:\Users\pgarc\Downloads\argon-dashboard-react-master\node_modules\express\lib\router\index.js:275:10)
at launchEditorMiddleware (C:\Users\pgarc\Downloads\argon-dashboard-react-master\node_modules\react-dev-utils\errorOverlayMiddleware.js:20:7)
at Layer.handle [as handle_request] (C:\Users\pgarc\Downloads\argon-dashboard-react-master\node_modules\express\lib\router\layer.js:95:5)

I don't know how to solve this and how is getting this error. I'm stuck here. Please help!

@einazare
Copy link
Contributor

Duplicate #23
Also, next time, please follow our rules:

<!--
 IMPORTANT: Please use the following link to create a new issue:

  https://www.creative-tim.com/new-issue/argon-dashboard-react

**If your issue was not created using the app above, it will be closed immediately.**
-->

<!--
Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
👉  https://www.creative-tim.com/bundles
👉  https://www.creative-tim.com
-->

@einazare einazare added the duplicate This issue or pull request already exists label Mar 14, 2020
@zahidayub1122
Copy link

5

I found a fix, seems the problem stems from react-scripts 3.3.x series. In package.json I changed

"react-scripts":"3.3.0"
to

"react-scripts":"^3.4.0"
then run npm i and ionic serve and it works.

@quanhieu
Copy link

quanhieu commented Apr 3, 2020

5

I found a fix, seems the problem stems from react-scripts 3.3.x series. In package.json I changed

"react-scripts":"3.3.0"
to

"react-scripts":"^3.4.0"
then run npm i and ionic serve and it works.

It working. Thank you

@srinivasramadas11
Copy link

@zahidayub1122

this works now .. thanks for the suggestion

@shelbyecook
Copy link

OMG THANK YOU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

6 participants