-
Notifications
You must be signed in to change notification settings - Fork 45
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
Error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-linux-arm64-musl. #152
Comments
` ERROR #11903 API.TYPESCRIPT.COMPILATION There was an unhandled error during compilation for /. Please run the command with the --verbose flag again. Error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-linux-arm64-glibc. Please ensure it is installed (don't use --no-optional when installing with
not finished compile gatsby files - 0.101s` |
The package exists https://www.npmjs.com/package/@parcel/watcher-linux-arm64-musl but for some reason (perhaps an npm bug) it may not have been installed properly? Try clearing your package-lock.json and deleting node modules and then re installing. npm/cli#4828 |
Can confirm the same thing as the topic starter. Build log:
Used |
Did you follow the instructions in the error message? I can't do anything about npm/yarn not installing things properly. Things to try:
|
I just had this issue except with Some possibly helpful takeaways from my experience:
Hope this helps you and/or someone else in the future! |
Just popped into the code and I found where the message is logged, and indeed parcel will simply log this message in a Maybe right off we could tweak the verbiage of the message to something like |
Facing the same issue with @parcel/watcher-linux-x64-musl package. Downgrade of parcel or watcher packages did not help |
I recently ran into a similar issue on a netlify container. We (temporarily) resolved it by manually adding '@parcel/watcher-linux-x64-glibc' as an optional dependency. |
Solved the problem upgrading alpine from 3.15 to 3.18. To reproduce the issue run commands below (the second one is failing)
|
Why is a filesystem watcher needed to do an one-shot build of a project? |
This package also allows detecting changes between one-shot builds: https://github.com/parcel-bundler/watcher#querying |
I experienced this issue using the electron-forge typescript-webpack template trying to use The error message reported the correct package name, however, inspecting the build output showed webpack was only interpreting the name to require as
I am not familiar enough with webpack internals to explain why it misinterprets the require, but this patch resolved the issue ( diff --git a/node_modules/@parcel/watcher/index.js b/node_modules/@parcel/watcher/index.js
index 4929c54..64dd688 100644
--- a/node_modules/@parcel/watcher/index.js
+++ b/node_modules/@parcel/watcher/index.js
@@ -4,9 +4,9 @@ let name = `@parcel/watcher-${process.platform}-${process.arch}`;
if (process.platform === 'linux') {
const { MUSL, family } = require('detect-libc');
if (family === MUSL) {
- name += '-musl';
+ name = `@parcel/watcher-${process.platform}-${process.arch}-musl`;
} else {
- name += '-glibc';
+ name = `@parcel/watcher-${process.platform}-${process.arch}-glibc`;
}
} |
I ran into a very similar issue and got around it by:
|
ran into this same issue. @theprivileges solution worked for me. This was in a github action where I was having the issue. |
* Fix image links * Fix broken links * Fix @parcel/wathcer parcel-bundler/watcher#152
``` Error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-linux-x64-glibc. ``` parcel-bundler/watcher#152
I have exact same issue with building on
|
I was able to solve this by adding
|
I had this problem with a GitHub action (reported here), and using |
Otherwise, we run into parcel-bundler/watcher#152
Otherwise, we run into parcel-bundler/watcher#152
Hello,
We have a problem with running gatsby build in pipeline on linux VMs and in Docker.
It works only if i run gatsby build locally on my mac with m1.
It doesnt work on my mac if i try to run build in docker.
It doesnt work in pipeline - both in script and in docker.
I tried different base images with different node versions. I tried to run in pipeline with ubuntu 22 - the same result.
Dockerfile:
FROM node:18.4.0-buster-slim RUN apt-get update && apt-get install -y python3 build-essential gcc g++ make RUN npm install -g gatsby-cli COPY . . RUN npm ci RUN gatsby build
Inside the container i see node_modules with @parcel/watcher and all files #151
The text was updated successfully, but these errors were encountered: