Describe the bug
Error in the title appears when I run netlify dev on my Gridsome project.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/platform-kit/generator generator./bin/run seedDatagridsome develop (note that the underlying site builder works)netlify devConfiguration
netlify.toml:
[build] # Make sure you don't have a duplicate [build] context!
functions = "functions"
[[redirects]]
from = "/*"
to = "/404/index.html"
status = 404
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
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