-
Notifications
You must be signed in to change notification settings - Fork 354
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 on deploy command due to regression on dependency(prettyjson) #4012
Comments
I am having the same problem. The build timed out due to an infinite loop bug in colors.js. Since then, all deployments have failed. I hope the problem will be resolved. |
Same symptoms as above, we're unable to deploy since yesterday. |
Exact same issue here, first the colors.js issue and now this - haven't been able to find out exactly what is triggering the error. At first I thought it might have been something within my nuxt site but after testing it on a branch I knew worked before, I got the same error. |
Yeah, we need to bump Once #4005 gets merged, it will be fixed (tested locally) |
I was just able to run this on my local environment and deploy successfully after building locally:
Running the same command on GitHub Actions gives me the same error as others:
|
oh, so you only built netlify locally and it worked ? No changes in the prettyjson version ? |
@grouville All I did was install a fresh copy of Netlify CLI ( |
Hi everyone, we're currently looking into this. This is a duplicate of #4011 but will keep this one as it has a discussion. We use a shrinkwrap file, which means we pin dependencies at publication, so if you use
I'll try to reproduce, but if some can post a step by step reproduction scenario that would be great. |
@erezrokah Here's what my GitHub Actions workflow looks like. The name: Deployment
on:
push:
branches:
- master
jobs:
deploy_pwa:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/pwa
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v2-beta
with:
node-version: '12.x'
- name: Cache dependencies
uses: actions/cache@v2
id: cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Build
run: yarn run build
- name: Install netlify-cli
run: sudo yarn global add netlify-cli
- name: Publish on Netlify
run: DEBUG=* sudo netlify deploy --dir=dist --prod --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID
env:
NETLIFY_AUTH_TOKEN: ${{ env.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ env.NETLIFY_SITE_ID }} ============== UPDATE: Looks like this happens because I'm using Yarn in my GitHub Actions workflow whereas I was using npm while installing locally on my machine. Yarn doesn't support the shrinkfile file as mentioned in #3981 (comment). |
Thanks for the additionally information @dakshshah96, it makes sense. It's highly recommended to use To do it, you should commit the To install the CLI globally in a reproducible way, you should switch to |
Regardless I believe this issue can be closed as it was resolved in the latest |
I updated netlify-cli to v8.6.19 and the problem was solved. Thanks. |
Describe the bug
Run
netlify deploy --prod --dir dist
CLI Output
The text was updated successfully, but these errors were encountered: