Giter Club home page Giter Club logo

Comments (6)

Angusross111 avatar Angusross111 commented on July 17, 2024 2

I got it running locally using micro-dev which is the suggested way to run micro in development.

"dev": "micro-dev ./lib/server.js",

You also need to add the required environment variables. I used dotenv and created a .env file in the root with:

ACCOUNT=<your-account>
REPOSITORY=<your-repo>
TOKEN=<token-if-private>
URL=http://localhost:3000

and added require('dotenv').config() at the top of /lib/index.js

from hazel.

mikekberg avatar mikekberg commented on July 17, 2024

I'm getting this as well, I got a bit further but added a new "start" task in package json scripts.

  "scripts": {
    "start": "micro",
    "dev": "npx vercel dev",
    "test": "xo && jest",
    "precommit": "lint-staged"
  },

You can start the server by running npm run start but I run into other issues when hitting any route.

from hazel.

user72356 avatar user72356 commented on July 17, 2024

I also have this issue in a plain regular React Vite app, with the following script:

"dev": "vercel dev"

I have the same error when running vercel dev from the command line.

I'm not sure what's recursive about it. Is the vercel cli trying to run the dev script? And why? Of course it can be fixed with using a different name for the script, but it bothers me.

"vercel-dev": "vercel dev"

from hazel.

ianrtracey avatar ianrtracey commented on July 17, 2024

Also running into this issue

from hazel.

jjalonso avatar jjalonso commented on July 17, 2024

Guys, please check this as it is a feature.

https://vercel.com/docs/errors/error-list#recursive-invocation-of-commands

from hazel.

antoinerousseau avatar antoinerousseau commented on July 17, 2024

We're using vc dev, e.g.

"dev": "vc dev -A vercel.local.json --listen 8000"

from hazel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.