DataV icon indicating copy to clipboard operation
DataV copied to clipboard

vue3.0 vite 控制台输出报错

Open board-man opened this issue 3 years ago • 8 comments

Bug report

Uncaught SyntaxError: The requested module '/node_modules/@jiaminghi/c-render/lib/index.js?v=58493ac3' does not provide an export named 'default'

出现Bug的组件?

c-render

组件配置数据?

"dependencies": { "axios": "^0.23.0", "echarts": "^5.2.1", "node-sass": "^6.0.1", "sass": "^1.43.2", "sass-loader": "^12.2.0", "video.js": "^7.15.4", "vue": "^3.0.4", "vue-router": "^4.0.12",

控制台错误输出?

Uncaught SyntaxError: The requested module '/node_modules/@jiaminghi/c-render/lib/index.js?v=58493ac3' does not provide an export named 'default'

board-man avatar Oct 15 '21 10:10 board-man

import borderBox1 from '@jiaminghi/data-view/src/components/borderBox1/src/main.vue' 你可以使用 这样的方式引用

smartXJ avatar Oct 25 '21 02:10 smartXJ

一样的问题 希望作者可以解决

zhangdi0226 avatar Oct 26 '21 08:10 zhangdi0226

import borderBox1 from '@jiaminghi/data-view/src/components/borderBox1/src/main.vue' 你可以使用 这样的方式引用

这样使用会出现以下错误 SyntaxError: The requested module '/node_modules/@jiaminghi/c-render/lib/plugin/util.js?v=f7ea99ea' does not provide an export named 'deepClone'

zhangdi0226 avatar Oct 26 '21 08:10 zhangdi0226

import borderBox1 from '@jiaminghi/data-view/src/components/borderBox1/src/main.vue' 你可以使用 这样的方式引用

这样使用会出现以下错误 SyntaxError: The requested module '/node_modules/@jiaminghi/c-render/lib/plugin/util.js?v=f7ea99ea' does not provide an export named 'deepClone'

也出现一样的问题,你解决了吗?

wing520234 avatar Dec 28 '21 08:12 wing520234

我这样引用的时候,没有出现报错的情况

smartXJ avatar Dec 28 '21 08:12 smartXJ

一样的问题 希望作者可以解决

powerttt avatar Jun 07 '22 07:06 powerttt

老铁解决了吗,我也遇到这个问题

qishang777 avatar Oct 07 '22 04:10 qishang777

window.Vue = Vue;

if (window.Vue) { const scr = document.createElement("script"); scr.setAttribute( "src", "https://unpkg.com/@jiaminghi/data-view/dist/datav.map.vue.js" ); scr.onload = function () { new Vue({ router, pinia: createPinia(), render: (h) => h(App) }).$mount("#app"); }; document.head.appendChild(scr); }

huyafei avatar May 19 '23 04:05 huyafei