Serverless Functions not running locally with ViteJS (Vue 3) #113
-
Hi! I created a ViteJS App with Vue 3 and deployed it to Vercel. I'm having issues developing Serverless Functions. I've added an But this is what I get: This issue isn't present on the deployed website, it only happens when I use
Is there an issue in my configuration? Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 9 replies
-
I got some workaround Just change the |
Beta Was this translation helpful? Give feedback.
-
The solution proposed by @KeramasWiguna does not work for me, when executing vercel dev, it stays stopped until skipping timeout ... This "fix" does not work, the problem comes from that vercel dev uses webpack underneath, which when using Vite, it does not work as it should ... I have looked for solutions and at the moment I have not found anything, a solution by Vercel would be fine on this, right now it is the only thing that prevents me from continuing to develop my serverless functions locally, is there anything I can do in the meantime? |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is of any help @yurixcode, but the best I have found to work has been running |
Beta Was this translation helpful? Give feedback.
-
Replacing the dev script with "vite --port $PORT" seems to solve the problem. https://vercel.com/blog/vercel-dev#gatsby-and-node.js-functions |
Beta Was this translation helpful? Give feedback.
Replacing the dev script with "vite --port $PORT" seems to solve the problem.
https://vercel.com/blog/vercel-dev#gatsby-and-node.js-functions