#✅ - yarn install building fresh packages waiting for hours. is it normal?
9 messages · Page 1 of 1 (latest)
Hi @oblique jasper 👋 , have you tried a clean install locally?
rm -rf node_modules yarn.lockyarn install
I'd also recommend running a production build of your app locally to verify it compiles and builds without errors.
Same problem here. But local build works perfectly fine. Also application successfully deployed on vercel and husky. Issue currently exists only on AWS Amplify
. Even reverting changes to last successfull deploy isn't solve the problem.
Problem since <t:1721768400:R>
@winged arch can you share the complete error trace that you are observing during the build?
Oh, hi. I already fixed this )
Actually i don't know exactly what helped, but:
- i updated remote machine OS (newer Linux version)
- a lot of clearance was made in package.json and yarn.lock (yarn.lock recreated)
- also updated build script on AWS to use
yarn install --frozen-lockinstead ofyarn install - also update Node version on remote machine from 16.x to 20.x
Still have no idea why the deployment broke, but it works fine now
About error trace. I have not received any error's. My dependencies installation just frozen on "Building fresh packages..." and after 30 mins timeout the deployment fails with build timeout error
Glad to hear that you are unblocked! Based on that error, the root cause is likely related to a combination of outdated yarn.lock file and node version used at build time. An additional contributing factor could be the node_modules that are cached at build time.
cache:
paths:
- node_modules/**/*
✅ - yarn install building fresh packages waiting for hours. is it normal?