-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 linaria 后 H5 dev 编译报错 EvalError: $RefreshReg$ is not defined in #12700
Comments
taro-bot2
bot
added
F-react
Framework - React
T-h5
Target - 编译到 H5
V-3
Version - 3.x
labels
Oct 21, 2022
Duplicate of #12685 |
跟 RefreshSig 不是一个问题,版本回退到 3.5.6 也会有这个问题。。。。 |
Closed
3.6.13还是有这个问题. Module build failed (from ./node_modules/@linaria/webpack5-loader/lib/index.js): |
|
请问这个加哪里?加了之后解决了吗? |
加在babel.config.js里,如下: module.exports = {
presets: [
['taro', {
framework: 'react',
ts: true,
hot:false // +++++++
}],
'@linaria', // 添加到 babel-preset
]
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: Chrome 106
使用框架: React
复现步骤
$ yarn dev:h5
在手白小程序中没有问题
期望结果
解决报错正常使用
实际结果
h5 环境报错无法编译成功,百度小程序正常
环境信息
The text was updated successfully, but these errors were encountered: