hello,
I get this error in build step of our gatsby project (latest version 5.11.0). I was able to build it locally with netlify CLI build.
8:39:32 AM: error There was an unhandled error during compilation for /opt/build/repo. Please run the command with the --verbose flag again.
8:39:32 AM: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-linux-x64-glibc. Please ensure it is installed (don’t use --no-optional when installing with npm). Otherwise it is possible we don’t support your platform yet. If this is the case, please report an issue to GitHub - parcel-bundler/watcher: 👀 A native C++ Node module for querying and subscribing to filesystem events.
Could you provide us with the URL or name of that site that you’re having this build issue with? If you could provide the site name such as sitename_example.netlify.app that’ll help us look into this issue. Thanks!
tried to add “npm rebuild && npm build” in the netlify.toml - solution I came across according to the forum here with some related task mentioning C libs not working/building correctly. I was able to make it complete the CI build by additionally adding these packages to our deps and gatsby config:
Right now it is deployed but we can see that the app does not work correctly, API requests are not sent, etc. so we are further investigating what caused it - if it might be caused by those deps changing something. Could you give us any advice/clue? Thank you.