<template>
<view>
<text @tap="showAdd">add</text>
<uni-popup ref="popup">新增</uni-popup>
</view>
</template>
<script>
// import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue';
export default {
// components: {
// "uni-popup": uniPopup
// },
data() {
return {}
},
methods: {
showAdd() {
this.$refs.popup.open()
}
}
}
</script>
HBuilderX 4.15 项目是新建uni-ui的demo项目,uni-popup版本1.8.3,更新uni-popup到最新版的1.9.1也有同样的报错
vue2写法,vue3 setup写法都试了全都报错
http://localhost:5174/uni_modules/uni-popup/components/uni-popup/keypress.js net::ERR_BLOCKED_BY_CLIENT
TypeError: Failed to fetch dynamically imported module: http://localhost:5174/pages/index/index.vue?t=1719367483181