Cli: "Empty args assigned, this is an internal Netlify Dev bug, please report your settings and scripts so we can improve"

Created on 22 Aug 2020  ยท  6Comments  ยท  Source: netlify/cli

Describe the bug

Error in the title appears when I run netlify dev on my Gridsome project.

To Reproduce

Steps to reproduce the behavior:

  1. Run git clone https://github.com/platform-kit/generator generator
  2. Navigate to the cloned repository
  3. Run ./bin/run seedData
  4. Run gridsome develop (note that the underlying site builder works)
  5. Run netlify dev
  6. See that the CLI exits with the error in the title

Configuration

netlify.toml:

[build] # Make sure you don't have a duplicate [build] context!
  functions = "functions"  

[[redirects]]
  from = "/*"
  to = "/404/index.html"
  status = 404
  • Please enter the following command in a terminal and copy/paste its output:
npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli
  System:
    OS: macOS 10.15.4
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 40.00 GB / 64.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 11.15.0 - ~/.nvm/versions/node/v11.15.0/bin/node
    Yarn: 1.22.4 - ~/htdocs/dw/node_modules/.bin/yarn
    npm: 6.7.0 - ~/.nvm/versions/node/v11.15.0/bin/npm
  npmPackages:
    netlify-cli: ^2.59.1 => 2.59.1 
  npmGlobalPackages:
    netlify-cli: 2.59.1



md5-0c5abd8ba0e2a02089789e88aac37696



jameshuntercarter@Jamess-MBP dw % netlify dev
โ—ˆ Netlify Dev โ—ˆ
โ—ˆ Injected build setting env var: MAIL_TRANSPORT
โ—ˆ Injected build setting env var: APP_DOMAIN
โ—ˆ Injected build setting env var: STRIPE_SECRET_KEY
โ—ˆ Injected build setting env var: GRIDSOME_API_URL
โ—ˆ Injected build setting env var: GITHUB_REPOSITORY
โ—ˆ Injected build setting env var: GRIDSOME_APP_DOMAIN
โ—ˆ Injected build setting env var: JWT_SECRET
โ—ˆ Injected build setting env var: MAIL_PORT
โ—ˆ Injected build setting env var: API_URL
โ—ˆ Injected build setting env var: REPOSITORY
โ—ˆ Injected build setting env var: GRIDSOME_APP_URL
โ—ˆ Injected build setting env var: MAIL_DOMAIN
โ—ˆ Injected build setting env var: MAIL_SERVICE
โ—ˆ Injected build setting env var: MAIL_HOST
โ—ˆ Injected build setting env var: APP_URL
โ—ˆ Injected build setting env var: MAIL_API_KEY
โ—ˆ Injected build setting env var: MAIL_USER
โ—ˆ Injected build setting env var: ENVIRONMENT
โ—ˆ Injected build setting env var: MAIL_KEY
โ—ˆ Injected build setting env var: MAIL_SENDER
โ—ˆ Injected build setting env var: GITHUB_TOKEN
โ—ˆ Injected build setting env var: MAIL_SECURE
โ—ˆ Overriding the following env variables with .env file: APP_URL,APP_DOMAIN,API_URL,GRIDSOME_APP_URL,GRIDSOME_APP_DOMAIN,GRIDSOME_API_URL,GRIDSOME_STRIPE_PUBLIC_KEY,JWT_SECRET,CUBE_ANALYTICS_SECRET,MAIL_SECURE,MAIL_PORT,MAIL_HOST,MAIL_USER,MAIL_KEY,MAIL_SENDER,MAIL_SERVICE,STRIPE_SECRET_KEY,GITHUB_TOKEN,GITHUB_REPOSITORY,ENVIRONMENT,DOCS_MODE,ANALYTICS_ENDPOINT,DATABASE_URL
โ—ˆ Empty args assigned, this is an internal Netlify Dev bug, please report your settings and scripts so we can improve
bug

All 6 comments

I saw this issue too while trying to get https://github.com/netlify/netlify-faunadb-example set up after using the deploy button!

@lpatmo

I found this very frustrating to debug. No output to work off of. I ended up removing chunks of code at random until something changed. The culprit was a script in the package.json "scripts" section. Hope that helps.

@platform-kit Thanks!

I am having same issue after update to latest version (netlify-cli/2.64.1 win32-x64 node-v12.13.1),

package.json

scripts": {
    "develop": "netlify dev",
    "build": "gatsby build",
    "clean": "gatsby clean",
    "format": "prettier --write src/**/*.{js,jsx}",
    "serve": "gatsby serve",
    "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
  }

Thanks @Nisfan, do you mind opening a new issue for it?

Linking the created issue here https://github.com/netlify/cli/issues/1292

Was this page helpful?
0 / 5 - 0 ratings