<template>
<atom-spinner :animation-duration="1000" :size="60" :color="'#ff1d5e'" />
</template>
<script setup lang="ts">
import { AtomSpinner } from 'epic-spinners'
</script>
- 发布:2023-10-12 23:44
- 更新:2023-12-06 17:59
- 阅读:3978
【报Bug】"openBlock" is not exported by "node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js"
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.5
第三方开发者工具版本号: 1.06.2308310
基础库版本号: 3.1.2
项目创建方式: CLI
CLI版本号: 5.08
示例代码:
操作步骤:
<template>
<atom-spinner :animation-duration="1000" :size="60" :color="'#ff1d5e'" />
</template>
<script setup lang="ts">
import { AtomSpinner } from 'epic-spinners'
</script>
<template>
<atom-spinner :animation-duration="1000" :size="60" :color="'#ff1d5e'" />
</template>
<script setup lang="ts">
import { AtomSpinner } from 'epic-spinners'
</script>
预期结果:
能正常显示,插件官网
能正常显示,插件官网
实际结果:
开始差量编译...
"openBlock" is not exported by "node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js", imported by "node_modules/epic-spinners/dist/es/components/HollowDotsSpinner.js".
at ../node_modules/epic-spinners/dist/es/components/HollowDotsSpinner.js:2:9
1: import '../../style/HollowDotsSpinner.css';
2: import { openBlock, createElementBlock, normalizeStyle, Fragment, renderList } from 'vue';
^
3: import { _export_sfc } from '../plugin-vue_export-helper.js'; (x2)
开始差量编译...
"openBlock" is not exported by "node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js", imported by "node_modules/epic-spinners/dist/es/components/HollowDotsSpinner.js".
at ../node_modules/epic-spinners/dist/es/components/HollowDotsSpinner.js:2:9
1: import '../../style/HollowDotsSpinner.css';
2: import { openBlock, createElementBlock, normalizeStyle, Fragment, renderList } from 'vue';
^
3: import { _export_sfc } from '../plugin-vue_export-helper.js'; (x2)
bug描述:
引入第三方库epic-spinners
,在页面中使用第三方库组件,编译后报错。
开始差量编译...
"openBlock" is not exported by "node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js", imported by "node_modules/epic-spinners/dist/es/components/HollowDotsSpinner.js".
at ../node_modules/epic-spinners/dist/es/components/HollowDotsSpinner.js:2:9
1: import '../../style/HollowDotsSpinner.css';
2: import { openBlock, createElementBlock, normalizeStyle, Fragment, renderList } from 'vue';
^
3: import { _export_sfc } from '../plugin-vue_export-helper.js'; (x2)
"openBlock" is not exported by "node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js", imported by "node_modules/@dcloudio/uni-h5/dist/uni-h5.es.js".
at ../node_modules/@dcloudio/uni-h5/dist/uni-h5.es.js:1:79
1: import { withModifiers, createVNode, getCurrentInstance, ref, defineComponent, openBlock, createElementBlock, provide...
被折磨死了不知道是版本问题还是插件问题
fozero
大佬,这个问题你解决了吗
2023-11-23 01:13
9***@qq.com
参考https://ask.dcloud.net.cn/question/163203
2024-01-04 23:39