Windows 10 clean install startup issue - Cannot read property 'split' of undefined
See original GitHub issueThis was tested on the newest version of react-firebase-starter.
I have tried installing this on a Windows 10 PC and Laptop and both have the same issue, so I thought others may be seeing this. (One had firebase credentials set, other did not)
On Windows 10 after doing:
yarn install
yarn relay // <- works and compiles fine
yarn start
it gives the following error:
λ yarn start
yarn run v1.3.2
$ react-app start
C:\Projects\myiworlds\react-firebase-starter\node_modules\react-scripts\config\webpack.config.dev.js:100
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
^
TypeError: Cannot read property 'split' of undefined
at Object.<anonymous> (C:\Projects\myiworlds\react-firebase-starter\node_modules\react-scripts\config\webpack.con
fig.dev.js:100:29)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Projects\myiworlds\react-firebase-starter\node_modules\react-scripts\config\webpackDevS
erver.config.js:14:16)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
error Command failed with exit code 1.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
ERROR ==> Cannot read property 'split' of undefined ... - GitHub
Hello, OS: Windows 10 Pro (Build 20H2 with all updates installed) Docker: stable 2.4.0.0 Lando: 3.0.16 I tried to initialize lando on a ......
Read more >Cannot Read Property 'split' of Undefined - freeCodeCamp
it will throw the TypeError: Cannot read property 'split' of undefined error. The split method. When split is called on a string, it...
Read more >How to prevent cannot read property split of undefined
The error "Cannot read property split of undefined" can occur when performing any of these types of operations if the variable is undefined....
Read more >Cannot read property 'split' of undefined in discord and nodejs ...
"TypeError: Cannot read property 'split' of undefined" basically means that "The value that .split() was called on does not have a .split() ...
Read more >TypeError: Cannot read Property 'split' of Undefined in JS
The "Cannot read property 'split' of undefined" error occurs when trying to call the split() method on a variable that stores an undefined...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DaveyEdwards I was able to work around this by adding NODE_PATH environmental variables to both my local Windows machine and the .env file.
Windows:
NODE_PATH=%AppData%\npm\node_modules
.env
NODE_PATH=./
So far I haven’t had any issues with the starter kit base code but I’m just starting to implement features so we’ll keep ya posted. Hope this helps!
@koistya maybe we should make a note on the readme for Windows users to see this issue?