Skip to content
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

zhuker/lamejs 打包报错 #95

Open
dengZhiNeng opened this issue May 26, 2023 · 1 comment
Open

zhuker/lamejs 打包报错 #95

dengZhiNeng opened this issue May 26, 2023 · 1 comment

Comments

@dengZhiNeng
Copy link

使用后本地环境能运行,转mp3没问题,但是最后打的包(build)是1.2.1版本,可能是你修改了没有发版的原因 出现打包报错。导致wav转mp3失败,vue3不能使用const lamejs = require('lamejs')

@WXperia
Copy link

WXperia commented Nov 14, 2023

你打开lamejs.js 这个文件,手动export一下就行,不要删掉lamejs(),他关键的方法都是构造方法,要先执行一边,然后用的话建议用补丁的方式,加到你现有的库里,因为这份代码有年头了不支持treeshaking

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

No branches or pull requests

2 participants