简体   繁体   中英

Repository as dependency doesn't affect changes

My nextjs front-end app on AWS has a back-end dependency in package.json linked it in this way: "api-client": "git+https://username:password@bitbucket.org/username/api_client_dev.git" .

When I update my backend repository with changes, locally (npm run dev) everything works, but the app on AWS (with Amplify), when building recognizes an error type about a variable referring to something I haven't done yet. My front-end doesn't recognize the updated repository. If I check my repo on bitbucket is updated. No problems with branches.

I don't understand why. Any suggestion? Thank you

The problem was in amplify.yml

Adding the script npm update on pre-build, force amplify to refresh cached dependencies on node_modules, my dependency included.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM