How can I use the migration build with the runtime compiler? #8176
-
I'm trying to migrate a large Vue 2 application via the {
resolve: {
alias: [{ find: 'vue', replacement: '@vue/compat' }]
}
} This seems to work, but I get a warning in the browser console:
The application mounts the root component on an element containing a basic template rendered by the server. This is used to initialise the app with props rendered to the component. The updated mounting runs like: const App = () => import('@components/App.vue')
const app = createApp({
components: { App }
})
app.mount('.main') where <div class="main">
<App :prop-from-server="value" />
</div> Is there a way to maintain this functionality while using the migration build? Why do both of these rely on aliasing the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Related: #7190 |
Beta Was this translation helpful? Give feedback.
-
The solution should've been obvious to me. |
Beta Was this translation helpful? Give feedback.
The solution should've been obvious to me.
@vue/compat
also has a dist folder with all the different builds, so I just had to switch my alias to@vue/compat/dist/vue.esm-bundler.js
.