-
Notifications
You must be signed in to change notification settings - Fork 15
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
Component provided template option but runtime compilation is not supported in this build of Vue #8
Comments
It is a Vue bundled file problem, please check out Explanation of Different Builds of Vue 3. In short, use: import { createApp } from 'vue/dist/vue.esm-bundler'; instead of : import { createApp } from 'vue/dist/vue.runtime.esm-bundler'; |
thanks, it's work for me |
@fengyuanchen Is there a type declaration for this file? Because TS yells at me when I use it. |
|
yes it **
**'; working |
@fengyuanchen legend!! |
For others who also are trying to do this in nx, or using webpack, just set your configure-webpack.js to
|
I had the same issue while trying to upgrade from vue2 to vue3, the migration guide suggested I should be using
|
thanks a lot, it works for me |
I have tried many configuration methods to modify vite.config.js, resolve: { alias: { vue: "vue/dist/vue.esm-bundler.js" } }, runtimeCompiler: true, but there is no effect, still an error |
@yinkeli same for me. Did you find any solution? |
I am running into this warning (and no component) on a pretty clean install for vue3 with TS.
The text was updated successfully, but these errors were encountered: