JSX Errors in Vue #17091
Unanswered
jdfwarrior
asked this question in
Help
JSX Errors in Vue
#17091
Replies: 2 comments
-
I'm having the exact same error since upgrading storybook 6.5 to 7.2.1 this morning. Is there a resolution for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just added Storybook to an existing Vue 3 project yesterday and have noticed that, since doing so, the template tags in all of my SFCs are showing JSX errors when using the
class
attribute on an element, asking if I meant to useclassName
. That would be fine... if I were using JSX 😃 That SEEMS to be the issue, that it's incorrectly identifying the code as jsx.Being a Vue 3 project, I'm using Vite as my bundler. When adding Storybook, I used the instructions found here: https://storybook.js.org/blog/storybook-for-vite/ where I init sb@next and set the builder to storybook-builder-vite.
Is anyone able to point me in a direction as to where I could look to fix this? Reverting all file changes doesn't fix it. I had to remove all the stuff associated with Storybook from node_modules and restart VSCode to resolve the errors.
Beta Was this translation helpful? Give feedback.
All reactions