Title: Issue: react-scripts 3.3.0 prevents React App from loading · Issue #2 · kdhttps/appauth-react · GitHub
Open Graph Title: Issue: react-scripts 3.3.0 prevents React App from loading · Issue #2 · kdhttps/appauth-react
X Title: Issue: react-scripts 3.3.0 prevents React App from loading · Issue #2 · kdhttps/appauth-react
Description: Expected Behavior Clone app and install dependencies. Plug in variables into environment.js. Run npm start. View "Home" page and test configurations. Actual Bahavior After running npm start, the following error message is displayed: Type...
Open Graph Description: Expected Behavior Clone app and install dependencies. Plug in variables into environment.js. Run npm start. View "Home" page and test configurations. Actual Bahavior After running npm start, the fo...
X Description: Expected Behavior Clone app and install dependencies. Plug in variables into environment.js. Run npm start. View "Home" page and test configurations. Actual Bahavior After running npm sta...
Opengraph URL: https://github.com/kdhttps/appauth-react/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue: react-scripts 3.3.0 prevents React App from loading","articleBody":"# Expected Behavior\r\n1. Clone app and install dependencies.\r\n2. Plug in variables into `environment.js`.\r\n3. Run `npm start`.\r\n4. View \"Home\" page and test configurations.\r\n\r\n# Actual Bahavior\r\nAfter running `npm start`, the following error message is displayed:\r\n```\r\nTypeError [ERR_INVALID_ARG_TYPE]: The \"path\" argument must be of type string. Received undefined\r\n at validateString (internal/validators.js:124:11)\r\n at Object.join (path.js:1148:7)\r\n at noopServiceWorkerMiddleware (/Users/hqu5813/Desktop/appauth-react/node_modules/react-dev-utils/noopServiceWorkerMiddleware.js:14:26)\r\n at Layer.handle [as handle_request] (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/index.js:317:13)\r\n at /Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/index.js:284:7\r\n at Function.process_params (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/index.js:335:12)\r\n at next (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/index.js:275:10)\r\n at launchEditorMiddleware (/Users/hqu5813/Desktop/appauth-react/node_modules/react-dev-utils/errorOverlayMiddleware.js:20:7)\r\n at Layer.handle [as handle_request] (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/index.js:317:13)\r\n at /Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/index.js:284:7\r\n at Function.process_params (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/index.js:335:12)\r\n at next (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/index.js:275:10)\r\n at handleWebpackInternalMiddleware (/Users/hqu5813/Desktop/appauth-react/node_modules/react-dev-utils/evalSourceMapMiddleware.js:42:7)\r\n at Layer.handle [as handle_request] (/Users/hqu5813/Desktop/appauth-react/node_modules/express/lib/router/layer.js:95:5)\r\n```\r\nThe `App.js` file already passes parameters to the `path` attribute as a string.\r\n```\r\n\u003cdiv\u003e\r\n \u003cRoute exact path=\"/\" component={Home} /\u003e\r\n \u003cRoute exact path=\"/profile\" component={Profile} /\u003e\r\n \u003cRoute exact path=\"/callback\" component={Callback} /\u003e\r\n\u003c/div\u003e\r\n```\r\n\r\n# Possible Fix\r\nAccording to a StackOverflow article - https://stackoverflow.com/questions/60234640/typeerror-err-invalid-arg-type-the-path-argument-must-be-of-type-string-re - the error is caused because of an out-of-date version of `react-scripts`.\r\n\r\n# Steps Taken to Resolve Issue\r\n1. `rm -rf node_modules`.\r\n2. Bump `react-scripts` version in `package.json`: \r\n```\r\n \"dependencies\": {\r\n . . .\r\n \"react-scripts\": \"3.4.0\" // Edit from \"3.3.0\" to 3.4.0.\r\n },\r\n```\r\n3. Run `npm i` to reinstall dependencies.\r\n4. Run `npm start`.","author":{"url":"https://github.com/TerrenceMM2","@type":"Person","name":"TerrenceMM2"},"datePublished":"2021-08-13T19:26:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/appauth-react/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:42cc1a51-5cb5-a462-9cf3-989090a27cee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BD0:36C84C:159AEC8:15E2372:697A959A |
| html-safe-nonce | f9e40c5d44b418e0aee0aa257e826954690c5c320cd513ec644d7d659cf84e04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkQwOjM2Qzg0QzoxNTlBRUM4OjE1RTIzNzI6Njk3QTk1OUEiLCJ2aXNpdG9yX2lkIjoiMTQ4ODc2NzU5MDc3ODcwNTMwNiIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 19d0d32b89cc8273847073ba51c9b6de8e3a6634c6d7ca4a40f3120c5dc851de |
| hovercard-subject-tag | issue:970658384 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/kdhttps/appauth-react/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82f12fca6b0f60c3d9a3c1668fbc1483f11e8f8519d6d6593da7f28648f3d4b6/kdhttps/appauth-react/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82f12fca6b0f60c3d9a3c1668fbc1483f11e8f8519d6d6593da7f28648f3d4b6/kdhttps/appauth-react/issues/2 |
| og:image:alt | Expected Behavior Clone app and install dependencies. Plug in variables into environment.js. Run npm start. View "Home" page and test configurations. Actual Bahavior After running npm start, the fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TerrenceMM2 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0912f2a9aa0160e08239520d461a4b4c4ce1caa972a8370b7442b94a38a194c5 |
| turbo-cache-control | no-preview |
| go-import | github.com/kdhttps/appauth-react git https://github.com/kdhttps/appauth-react.git |
| octolytics-dimension-user_id | 39133739 |
| octolytics-dimension-user_login | kdhttps |
| octolytics-dimension-repository_id | 231128354 |
| octolytics-dimension-repository_nwo | kdhttps/appauth-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 231128354 |
| octolytics-dimension-repository_network_root_nwo | kdhttps/appauth-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8f5270c10a913bfa56f2dad4b864f1cda383754 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width