DataV
DataV copied to clipboard
vue3.0 vite 控制台输出报错
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'
import borderBox1 from '@jiaminghi/data-view/src/components/borderBox1/src/main.vue' 你可以使用 这样的方式引用
一样的问题 希望作者可以解决
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'
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'
也出现一样的问题,你解决了吗?
我这样引用的时候,没有出现报错的情况
一样的问题 希望作者可以解决
老铁解决了吗,我也遇到这个问题
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); }