-
Notifications
You must be signed in to change notification settings - Fork 118
◈ Empty args assigned, this is an internal Netlify Dev bug, please report your settings and scripts so we can improve #26
Comments
I am getting the same error but after installation and on
|
Getting same error message.
◈ Netlify Dev ◈ npm ERR! A complete log of this run can be found in: |
I had the same problem. Making the following changes fixed the issue: // package.json
"scripts": {
"bootstrap": "netlify dev:exec node ./scripts/bootstrap-fauna-database.js",
"docs": "md-magic --path '**/*.md' --ignore 'node_modules'",
- "start": "netlify dev",
+ "dev": "netlify dev",
+ "start": "react-scripts start",
"prebuild": "echo 'setup faunaDB' && npm run bootstrap",
"build": "react-scripts build"
}, // netlify.toml
[dev]
# Local dev command. A.k.a npm start
- command = "react-scripts start"
+ command = "npm start" |
It seems like the project cannot run as-is due to the CLI detecting the See also: netlify/cli#1798 |
The CLI detects different framework commands in package.json, and will throw if it detects `netlify dev` in the default script while running `netlify dev` in order to avoid recursively calling itself. By removing the `netlify dev` from the `start` and `dev` scripts and adjusting the CLI logic to recognize `netlify dev:exec` as distinct from `netlify:dev`, we can get this project working as expected. Also updates package.json dependencies. see also: netlify#26 netlify/cli#1798
The CLI detects different framework commands in package.json, and will throw if it detects `netlify dev` in the default script while running `netlify dev` in order to avoid recursively calling itself. By removing the `netlify dev` from the `start` and `dev` scripts and adjusting the CLI logic to recognize `netlify dev:exec` as distinct from `netlify:dev`, we can get this project working as expected. Also updates package.json dependencies. see also: netlify#26 netlify/cli#1798
Any update on this? I can't get this to work. Receiving the same error |
Interestingly enough I updated faunadb and then the above fixes started working. |
New Post:
Problem:
Steps to recreate:
Running
npm run bootstrap
caused this error:So I ran
netlify link
.That went well, but running
npm start
next caused the same error:The full debug log:
Old post:
After clicking on the button to deploy this to Netlify and creating the FaunaDB key, we were getting the following error:
Can I add to the README.md the instruction to install the netlify CLI? https://docs.netlify.com/cli/get-started/
The text was updated successfully, but these errors were encountered: