-
-
Notifications
You must be signed in to change notification settings - Fork 196
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 #527
Comments
Start a new pull request in StackBlitz Codeflow. |
Getting the same thing. |
Facing same issue on MacOS using pnpm. |
FWIW, removing any reference to
which is rather surprising since the stack trace doesn't mention
…and doesn't really help, since we are using Histoire in a Nuxt 3 project (autoloading and all). If it helps, I logged
The output is below:
Observations:
Hypothesis: A first pass is made by either No Storybook, no Histoire… The "stories" situation is not very good at the moment for Nuxt 3 users. |
Also having this issue with a complete clean nuxt install and these packages; Removing any reference to @histoire/plugin-nuxt from histoire.config.ts caused other errors |
i am currently migrating my vue project to a nuxt project. But i also get this issue with histoire which makes it impossible to use histoire with nuxt3. Any idea or workaround? |
@awacode21 our current workaround is to keep Nuxt out of our components as much as possible. It sort of gives us the benefits of agnosticism (for some meaning of agnosticism), but Nuxt's auto-imports and all are hard to let go :-(. |
I am also experiencing this issue. |
2 similar comments
I am also experiencing this issue. |
I am also experiencing this issue. |
Upgrading "@histoire/plugin-nuxt" to 0.16.2 somewhat made the error and stack trace go away, but there is still no Nuxt autoloading or other Nuxt-provided features. |
I am getting this error when using histoire with a nuxt module that I am creating. In my module configuration I have this to import the components:
Which works ok, but when I add the
This is when I get the error mentioned above. |
I managed to get passed this issue by editing
This stopped the files from compiling twice, although i still have the same issue when using for example |
This seems to be working for me. |
Co-authored-by: Guillaume Chau <[email protected]>
I'm still getting this error for 'nuxt-icon' and 'nuxt-icons' plugins.
|
Describe the bug
I'm receiving
At least one <template> or <script> is required in a single file component
for every.story.vue
file I've got on a Nuxt3 (@3.3.2
and@3.4.3
) project.Reproduction
https://stackblitz.com/edit/histoire-vue3-starter-wlv4el?file=package.json
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: