灯下等雪
灯下等雪
  • 发布:2024-06-26 10:12
  • 更新:2024-06-26 10:40
  • 阅读:29

创建uni-ui项目 vue3版本 使用uni-popup报错

分类:uni-app
<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

2024-06-26 10:12 负责人:无 分享
已邀请:
灯下等雪

灯下等雪 (作者) - 不要问,问就是不要

参照帖子:https://ask.dcloud.net.cn/question/171220
非广告拦截器

而是edge浏览器不知什么原因拦截了

改用chrome浏览器就好了,要不是edge可以多端保持收藏夹同步我也不会从chrome换到edge,哎

灯下等雪

灯下等雪 (作者) - 不要问,问就是不要

非edge的问题,经过逐一排查,最后在扩展里定位到了一款插件:uBlock Origin

要回复问题请先登录注册