mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[now dev] Allow now dev as package.json script (#2559)
* [now dev] Allow `now dev` as package.json script * Fix absolute path for now dev * Fix directory issue * Typo * Update src/commands/dev/dev.ts Co-Authored-By: Nathan Rajlich <n@n8.io> * Whitespace * Make code simpler * Extend type * Update errors/now-dev-as-dev-script.md Co-Authored-By: Nathan Rajlich <n@n8.io> * Update errors/now-dev-as-dev-script.md Co-Authored-By: Nathan Rajlich <n@n8.io>
This commit is contained in:
9
errors/now-dev-as-dev-script.md
Normal file
9
errors/now-dev-as-dev-script.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# `now dev` as `dev` script
|
||||
|
||||
#### Why This Error Occurred
|
||||
|
||||
The `package.json` file of the used project invokes `now dev` as `dev` script. This would cause `now dev` to recursively invoke itself.
|
||||
|
||||
#### Possible Ways to Fix It
|
||||
|
||||
Adjust the `dev` script inside the `package.json` file to match what your framework uses to begin development mode, e.g. `next` for Next.js or `gatsby develop` for Gatsby.
|
||||
Reference in New Issue
Block a user