This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
get-component引用的问题 #5
Comments
是不是没开启【将 JS 编译成 ES5】 |
我是在hbuilder上运行的,请问具体在哪设置呢?我没找到开启的地方 |
报错是在 hbuilder 命令行,还是小程序开发工具呢? |
命令行没有提示错误,我是运行到浏览器中,使用tab组件时,控制台提示的错误,经过排查 发现使用的import * as shvl from 'shvl' 这个模块报的错。 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
大部分组件都是可用的,只有使用get-component的组件会报一个ReferenceError: require is not defined at Module.node_modules\shvl\dist\shvl.mjs的错误。
尝试定位原因,/wxs/get-component import * as shvl from 'shvl' 问题好像出在这个组件上,我已经安装过这个组件,请问有什么解决方法或者替换方案吗?
The text was updated successfully, but these errors were encountered: