Nuxt UI - Unexpected token ';'
Hello,
my problem is very simple. I follow the docs of nuxt UI and type in:
npx nuxi init -t github:nuxt-ui-pro/saasthen move into the directory and run
npm run devThen I get the error:
ERROR [nuxt] [request error] [unhandled] [500] Unexpected token ';'I am running it on windows and as can be seen using NPM as package manager. Any ideas?
7 Replies
Hi @xate. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided in the knowledge sources, I don't have enough specific details to directly address the exact error you're encountering. However, I can offer some general troubleshooting steps and insights based on similar issues reported for Nuxt projects:
1. Ensure you're using a compatible Node.js version. Nuxt recommends Node.js 18.x or newer, preferably the active LTS release (https://github.com/nodejs/release#release-schedule). As mentioned in the Nuxt installation documentation (https://nuxt.com/docs/getting-started/installation), this is a prerequisite for Nuxt projects.
2. The error "Unexpected token ';'" typically indicates a syntax error in your JavaScript code. This could be caused by incompatible dependencies or issues with the template you're using.
3. Try cleaning your project and reinstalling dependencies:
4. If the issue persists, it might be related to a specific dependency or configuration in the Nuxt UI Pro template. You could try creating a basic Nuxt project first to see if the issue is specific to the UI Pro template:
5. If you're still encountering issues, it might be helpful to check for any Windows-specific setup requirements or known issues with the Nuxt UI Pro template.
If these steps don't resolve the issue, you may want to consider reporting this as a potential bug to the Nuxt UI Pro repository, providing details about your environment (Node.js version, npm version, Windows version) and the full error stack trace.
For more detailed troubleshooting, you might want to check the Nuxt documentation (https://nuxt.com/docs/getting-started/installation) or the Nuxt UI Pro repository for any known issues or specific setup instructions.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@275427499523964928> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
npm --version 10.9.0
node --version v22.11.0
Oh, I just found this thread: https://github.com/nuxt/ui/issues/2971 - looks exactly like my issue and is from 3 days ago so very fresh
GitHub
Nuxt 3.15 "Unexpected token" · Issue #2971 · nuxt/ui
Environment Operating System: Darwin Node Version: v20.10.0 Nuxt Version: 3.15.0 CLI Version: 3.17.2 Nitro Version: 2.10.4 Package Manager: [email protected] Builder: - User Config: default Runtime Module...
The proposed fix in the github thread works fine /thread
No problem! 👍
Oh, haha, thanks!