-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
3.10.x: nuxt build
creates vue files in .nuxt/dist/server/_nuxt
folder
#25724
Comments
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
This is unlikely to be an issue with Nuxt - |
nuxt build
creates vue files in .nuxt/dist/server/_nuxt
folder
Interesting. Have you customised |
I did not |
I probably can't look into this without a reproduction or more info. |
I can try to dig more into this and make this reproducable. Atm both StackBlitz and CodeSandBox are not working tho. |
@danielroe So it took me a few hours of removing more and more stuff from my app until I ended in an empty app and I realized: This happens on a blank empty app created with Since StackBlitz doesnt seem to work, here is the repo: https://github.com/MickL/nuxt-bug From my tryings the following needs to be true:
|
When you say that StackBlitz doesn't work, what do you mean? |
I can't reproduce with that repo. Here's a StackBlitz created from it - seemingly working fine: https://stackblitz.com/edit/github-iqamf7. Could you share any more info about your setup? |
I used bun install then bun run build if that changes anything (which I doubt). My specs are at the very top. I think #25690 could be the same issue, he said the same:
will double check my repo tomorrow |
You're quite right; it is reproducible there - I was checking |
|
I am not sure if this is causing me problems now - I updated my packages to latest (all of them), and somehow I get an error:
This only happens in dev mode, build is running fine. When I don't include the Strapi module in the configuration everything works. If I keep use the Nuxt |
Environment
Reproduction
Describe the bug
With
3.10.0
and3.10.1
I get an error at the end ofnuxt build
:ERROR RollupError: At least one <template> or <script> is required in a single file component
, with3.9.3
everything is fine.Unfortunately I cant reproduce this in the sandbox but I already tried to debug this for hours. I nailed it down to one of my ~10 components: If it contains a
<style>
tag with ANY content (even just a comment). Weirdly when I delete the content of the<script>
tag I can have styles:Throws the error:
Doesnt throw an error:
Doesnt throw an error:
It also only happens with this one component named
overlay.vue
. I feel like I am getting crazy or something but this seems to make absolutely no sense.Full error:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: