aws-samples / aws-samples/amplify-vite-react-template

@parcel/watcher error when regenerate package-lock.json

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
109
Forks
261
PR merge metrics
No merged PRs in 30d

Description

I have used ththis template to create my first gen 2 app, and tried to delete package-lock.json the regenerate it using npm install on windows, it build successlly in my local, but when push to remote, amplify console rebuild will Error: No prebuild or local build of @parcel/watcher found.

I checked package_lock.json, only windows prebuild is there and missing linux ones, so just rollback to the original package-lock.json and npm install on top of it to fix it, but this is not intuitive.

Not sure if this is a bug, but it actually takes me a few hours to figure out, just post it here in case anyone else experience the same.

Btw, want to thanks Gen2 team to make such a great improvement to amplify that makes dev so much easier, it is a great idea to put front-end/backend work closer and share same node_modules, and involves cdk is a great thing that removes the black box of cli. Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.