Closed SHSSNN closed 8 months ago
已收到群里反馈,是因为类似 import Recorder from 'recorder-core'
但未引用Recorder导致的此import被优化干掉了,只需随便调用一下Recorder变量保证强引用即可
多谢指导
recoder import must be first and then import wav and waview
import Recorder from 'recorder-core';
import 'recorder-core/src/engine/wav';
import 'recorder-core/src/extensions/waveview';
// https://github.com/xiangyuecn/Recorder/issues/211
Recorder.ConnectEnableWorklet = false;
页面引入任何一个插件或者格式文件都报这个错误,
我使用的框架是vite+vue3+ts