Skip to content

fix: 修复项目启动时报错问题#224

Open
i3web wants to merge 1 commit intoxaboy:nextfrom
i3web:next
Open

fix: 修复项目启动时报错问题#224
i3web wants to merge 1 commit intoxaboy:nextfrom
i3web:next

Conversation

@i3web
Copy link
Copy Markdown

@i3web i3web commented Dec 23, 2025

当执行pnpm dev:ele时,会报如下错误。
a0aa4f5cc80d02f199625e791ec0e11

原因是引用的npm包:signature_pad它的打包产物的class语法在当前webpack版本中不支持,所以需要转译一下
在vue.conf.js中增加这一行就可以了

    transpileDependencies: ['marked', 'signature_pad'],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant