You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm getting this build error for a package I believe codebuild uses during the build process, but i have no control over how this is used during deployment:
Error: 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 https://github.com/parcel-bundler/watcher.
I've attempted the following to fix this:
Updated the amplify.yml to remove --cache .npm --prefer-offline from npm ci call
Ran npm cache clean --force , deleted the node_modules folder and did a fresh npm install
Hey @patreilly 👋 thanks for raising this! We chatted offline and found that in a clean install (i.e. no node_modules/ or package-lock.json) the lockfile contained entries for each platform's addon. However if the lockfile is deleted and regenerated while node_modules/ still exist, only the addon for your host system is declared in the lockfile. This causes issues where after installing dependencies in the build system with npm ci, the linux addon is not installed and thus the failure in amplify pipeline-deploy
Environment information
Description
i'm getting this build error for a package I believe codebuild uses during the build process, but i have no control over how this is used during deployment:
I've attempted the following to fix this:
BUILD.txt
The text was updated successfully, but these errors were encountered: