-
Notifications
You must be signed in to change notification settings - Fork 343
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
[BUG] setup doesn't support return object with type of Module #874
Comments
You should not directly export const something = ref()
|
@MinatoHikari exporting a ref like OP does is totally fine. |
I don't have a need to SSR, so I just export a global ref. |
I think changing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The bug( or maybe not bug) code is at
composition-api/src/mixin.ts
Line 118 in a43090d
Sorry I can not offer an codesandbox or stackblitz link, because this bug is related to the building enviroment.
My local build enviroment is: vite + vite-plugin-vue2;
The build script is just
"build": "vite build",
withouttsc &&
because esbuild support typescript.Then with code:
App.vue
refs.ts
The text was updated successfully, but these errors were encountered: