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

Development server issues #2612

Closed
mcoker opened this issue Jan 24, 2020 · 1 comment
Closed

Development server issues #2612

mcoker opened this issue Jan 24, 2020 · 1 comment

Comments

@mcoker
Copy link
Contributor

mcoker commented Jan 24, 2020

I randomly get this error in the terminal from the development server

[2] /Users/cmichael/repos/patternfly-next/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
[2]         throw ex;
[2]         ^
[2] 
[2] TypeError: Cannot read property 'write' of null
[2]     at Zlib.callback (zlib.js:499:33)
[2] gatsby develop exited with code 7

Zack recommended the fix in gatsbyjs/gatsby#14553, which increases the system's file watcher limit. I've verified that it's writing this out to /etc/sysctl.conf and persists after rebooting

marvin:patternfly-next cmichael$ grep max_user_watches /etc/sysctl.conf
fs.inotify.max_user_watches=524288

Also updates to .hbs and the component example .md files aren't always reflected in the browser. However simply stopping the server and restarting (and sometimes after removing the .cache dir) will reflect the changes.

Occasionally something really weird happens - I'll make a change and don't see it in the browser, so I make some other change, then I see the original change but not the new change. Then I make another change, and see the previous change, but not the new one. I've verified I'm giving the server plenty of time to rebuild and reflect the change in the browser. Restarting the server will fix that, too.

cc @redallen @evwilkin

@redallen
Copy link
Contributor

redallen commented Feb 5, 2020

🎉 This issue has been resolved in version 2.57.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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