问题:导入resampler时报错
官网:resampler = require('audio-resampler');
自己写的:import { resampler } from "audio-resampler";
解决:
因为这是一个比较老的npm包,不支持上面的那种导入方式。
修改成:
import * as resampler from "audio-resampler";
问题:导入resampler时报错
官网:resampler = require('audio-resampler');
自己写的:import { resampler } from "audio-resampler";
解决:
因为这是一个比较老的npm包,不支持上面的那种导入方式。
修改成:
import * as resampler from "audio-resampler";
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。