N
Nuxt2mo ago
xate

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/saas
then move into the directory and run
npm run dev
Then 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
kapa.ai
kapa.ai2mo ago
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:
npx nuxi cleanup
rm -rf node_modules package-lock.json
npm install

npx nuxi cleanup
rm -rf node_modules package-lock.json
npm install

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:
npx nuxi init my-nuxt-app
cd my-nuxt-app
npm install
npm run dev

npx nuxi init my-nuxt-app
cd my-nuxt-app
npm install
npm run dev

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: ----------------------
kapa.ai
kapa.ai2mo ago
<@275427499523964928> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
xate
xateOP2mo ago
npm --version 10.9.0
node --version v22.11.0
xate
xateOP2mo ago
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...
xate
xateOP2mo ago
The proposed fix in the github thread works fine /thread
manniL
manniL2mo ago
No problem! 👍
xate
xateOP2mo ago
Oh, haha, thanks!

Did you find this page helpful?