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

Does not work anymore #104

Open
janterlaak opened this issue Sep 12, 2017 · 4 comments
Open

Does not work anymore #104

janterlaak opened this issue Sep 12, 2017 · 4 comments

Comments

@janterlaak
Copy link

after installation and creating a project

yarn start

/Users/j/test/myapp/node_modules/custom-react-scripts/scripts/start.js:21
throw err;
^

RangeError: Invalid string length
at Object.stringify (native)
at serializeMap (/Users/j/test/myapp/node_modules/inspectpack/lib/utils/cache.js:26:15)
at getCacheFilePath.then.filePath (/Users/janterlaak/test/myapp/node_modules/inspectpack/lib/utils/cache.js:93:27)
error Command failed with exit code 1.$

@janterlaak
Copy link
Author

Removing the last line from the .env file does the trick

@OshotOkill
Copy link

Got the same error too:

2017-09-14 5 37 44

It suddenly happened while coding. It's really weird since I don't do anything to package.json or any configuration files. I commented most of my code and only left index.js, however the error still happened.

@janterlaak
Copy link
Author

Open your .env file and remove the last line of the configutation. Save the file and run again

@OshotOkill
Copy link

@janterlaak That works.

I dig out a lot bit more and find out the real problem is REACT_APP_WEBPACK_DASHBOARD in .env file. It seems the internal module inspectpack is broken somehow and effects the webpack dashboard. After remove it the dev-server would work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants