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
Struggling to get vue3 to work in either Cli, IntelliJ or VSCode.
The documentation seems lacking, I needed to install a number of libraries, but even so, support for vue is not great.
Using CLI for example had an error about getActivePinia.
That is typically installed via app.use(pinia) in main.ts.
Unclear how to get the wrapper to install pinia (if indeed it needs to).
Reproduction
I followed your instructions for vue and created a wrapper and a preview.config.js.
Error: [🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
This will fail in production.
at useStore (http://localhost:8120/node_modules/.previewjs/v29.0.1/vite/deps/pinia.js?v=0ecf02a3:1363:13)
at setup (http://localhost:8120/src/views/Toolbox/RefreshTool.vue?import&t=1731549210815:10:23)
at callWithErrorHandling (http://localhost:8120/node_modules/.previewjs/v29.0.1/vite/deps/chunk-SR2TYROL.js?v=0ecf02a3:2547:19)
at setupStatefulComponent (http://localhost:8120/node_modules/.previewjs/v29.0.1/vite/deps/chunk-SR2TYROL.js?v=0ecf02a3:10277:25)
at setupComponent (http://localhost:8120/node_modules/.previewjs/v29.0.1/vite/deps/chunk-SR2TYROL.js?v=0ecf02a3:10238:36)
at mountComponent (http://localhost:8120/node_modules/.previewjs/v29.0.1/vite/deps/chunk-SR2TYROL.js?v=0ecf02a3:7586:7)
Browser logs (useful for rendering errors)
Lot's of errors, sometimes related to missing required props.(your ui makes it a bit difficult to provide complex props)Strange errors that don't show up when running the app eg:
- "h() already defined"
- [Vue warn]: injection "Symbol(router)" not found.
at <AuSignUp >
at <PreviewWrapper>
at <App >
Sometimes imports aren't resolved.Seems like the vue support is really not good.
Repo link (if available)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Struggling to get vue3 to work in either Cli, IntelliJ or VSCode.
The documentation seems lacking, I needed to install a number of libraries, but even so, support for vue is not great.
Using CLI for example had an error about getActivePinia.
That is typically installed via app.use(pinia) in main.ts.
Unclear how to get the wrapper to install pinia (if indeed it needs to).
Reproduction
I followed your instructions for vue and created a wrapper and a preview.config.js.
I installed the various npm packages that both the cli and intellij preview panel wanted, and ended up with these:
And installed previewjs cli globally (didn't work locall)
npm i -g @previewjs/cli
Then ran
previewjs
from the command line in the project folder.Preview.js CLI version
v1.28.1
Framework
vue v3.5.11
System Info
Used Package Manager
npm
CLI logs (useful for crashes)
Browser logs (useful for rendering errors)
Repo link (if available)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: