You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxError: "prefixIdentifiers" option is not supported in this build of compiler.
- /node_modules/.vite/deps/vitest-browser-vue.js:6404:30
- /node_modules/.vite/deps/vitest-browser-vue.js:6706:20
- /node_modules/.vite/deps/vitest-browser-vue.js:6722:21
- /node_modules/.vite/deps/vitest-browser-vue.js:6711:122
- /node_modules/.vite/deps/vitest-browser-vue.js:6890:16
- /node_modules/.vite/deps/vitest-browser-vue.js:7034:47
While writing this issue I finally found a way which works:
default: ()=>'Test'
So I needed to transform it into a function. Is this a bug or is this supposed to work like this? If this is not a bug then there should be some instructions on your documentation how to use the slots, since the slot declarations which are written in Vue Test Utils documentation do not work.
The text was updated successfully, but these errors were encountered:
Vue testing ecosystem relies a lot on Node.js and CJS development condition for this type of thing. I am not sure how to fix this on our side yet, but for now you can add this to your aliases and it should fix it:
When rendering slots, it throws this error:
I am testing with this setup:
TestComponent.vue
TestComponent.browser.test.ts
While writing this issue I finally found a way which works:
So I needed to transform it into a function. Is this a bug or is this supposed to work like this? If this is not a bug then there should be some instructions on your documentation how to use the slots, since the slot declarations which are written in Vue Test Utils documentation do not work.
The text was updated successfully, but these errors were encountered: