New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At least one <template> or <script> is required in a single file component #21553
Comments
This is because you may have created an empty |
Hi @tobychidi |
@jeydi243 I took the time to check your project and looks like there is couple of issues with your project that are not a Nuxt issue. In general, there is some issues with your imports. For Vue, Nuxt already do that for you https://nuxt.com/docs/guide/concepts/auto-imports#vue-auto-imports. Also, please check the debugging section https://nuxt.com/docs/guide/going-further/debugging#debugging-in-your-ide to fix the issues of your application, because if you cannot run dev you also will not be able to build. |
I don't encounter this issue when building your project: see https://stackblitz.com/github/jeydi243/gesi-nuxt and run |
Hi @wilsonpinto, I fix some issues but can you use the main branch to launch now. |
I could reproduced his bug in my local by the following steps:
Note I stopped to dig into this issue at this point, because I believe this is not how Nuxt is supposed to be used. import vue from '@vitejs/plugin-vue';
export default {
plugins: [
// vue()
]
}; You don't have to create See https://nuxt.com/docs/api/configuration/nuxt-config#vite for more detail. |
@NozomuIkuta is absolutely right here. 👍 I think maybe we could add a validation step to warn users if a custom vite config is present (and set a config option to disallow to being used, if vite supports that). |
Thank you @NozomuIkuta @danielroe it's work. |
Works for me. thanks @danielroe |
Environment
Hi everyone,
This is my environment
Thank you for your help
Reproduction
To reproduce the error you can
npm i
npm run build
It's just a simple nuxtjs project.
Describe the bug
In my project when i run the command
npm run build
the commande end with error show in logs.It's should run normally.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: