在节点中导入mp3时无效或意外的令牌ID3
尝试动态导入mp3文件时,我一直遇到此错误。
我是这样在以这种方式导入的。
我不明白“:1 id3”来自哪里。有什么建议吗?
编辑: 我无法解决问题,但是我确实找到了工作。我没有在服务器中获取MP3文件,而是通过在服务器中创建静态文件夹来保存所有音乐文件来从客户端获取它。
I keep running into this error when trying to dynamically import a mp3 file.
I'm importing it this way.
So I don't understand where the ":1 ID3" is coming from. Any suggestions?
EDIT:
I wasn't able to solve the problem, but I did find a work around for now. Instead of fetching the mp3 file in the server, I fetched it from the client by creating a static folder in the server to hold all the music files.
https://www.tutorialsteacher.com/nodejs/serving-static-files-in-nodejs
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论