falling-fruit / falling-fruit-web

Mobile-friendly website for Falling Fruit
https://beta.fallingfruit.org
GNU General Public License v3.0
29 stars 7 forks source link

Set up project to not watch the node_modules after `yarn build` #375

Closed wbazant closed 1 week ago

wbazant commented 1 month ago

The webpack capability of incremental compilation is not working, because we're watching everything, which is probably the react-scripts default:

Compiled successfully!

You can now view falling-fruit in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://192.168.178.37:3000

Note that the development build is not optimized.
To create a production build, use yarn build.

Error from chokidar (/home/wbazant/dev/falling-fruit-web/node_modules/@emotion/cache/dist): Error: ENOSPC: System limit for number of file watchers reached, watch '/home/wbazant/dev/falling-fruit-web/node_modules/@emotion/cache/dist'
Error from chokidar (/home/wbazant/dev/falling-fruit-web/node_modules/@emotion/core/node_modules/@emotion/cache/dist): Error: ENOSPC: System limit for number of file watchers reached, watch '/home/wbazant/dev/falling-fruit-web/node_modules/@emotion/core/node_modules/@emotion/cache/dist'
Error from chokidar (/home/wbazant/dev/falling-fruit-web/node_modules/@emotion/memoize/dist): Error: ENOSPC: System limit for number of file watchers reached, watch '/home/wbazant/dev/falling-fruit-web/node_modules/@emotion/memoize/dist'
wbazant commented 1 week ago

Found a workaround: CHOKIDAR_USEPOLLING=true yarn start. This might be something to do with my setup, and not the project in general.

ezwelty commented 5 days ago

FWIW I've never seen these errors (or any from chokidar) on my system.