Relative Content

Tag Archive for vuejs2vuejs3

Vue 3 migration esm-bundler warnings

After completing the Vue 3 migration process using the migration build, we are seeing a bunch of esm-bundler warnings in the console. They all seem to be coming from vue.runtime.esm-bundler.js. Does anyone know if these warnings are anything to worry about, or how to get rid of them. Below is an example of the first few errors. We are still using vue/cli so we have the vue.config.js file.

Stuck upgrading vue2 to vue3

// import Vue from “vue”; // vue2 import { createApp } from ‘vue’ // vue3 import fabComponent from “./components/Fab.vue”; import SvgIcon from “./components/SvgIcon.vue”; // The body of class window.fab = { mount(options) { var html = ‘<div data-vue-component=”FabComponent”></div>’; document.body.insertAdjacentHTML(‘beforeend’, html); document .querySelectorAll(“[data-vue-component=FabComponent]”) .forEach((element) => { // works in vue2 // const floatingButton = new Vue(fabComponent) […]

How to use Vue3 components in Vue2 project?

I have a Vue2+JS project that I want to add a chat component to, but I found some open source projects that were written using Vue3+ts. How should I use the components developed by Vue3 in My Project?