在节点中导入mp3时无效或意外的令牌ID3

发布于 2025-02-12 22:23:45 字数 784 浏览 0 评论 0原文

尝试动态导入mp3文件时,我一直遇到此错误。

我是这样在以这种方式导入的。

我不明白“:1 id3”来自哪里。有什么建议吗?

编辑: 我无法解决问题,但是我确实找到了工作。我没有在服务器中获取MP3文件,而是通过在服务器中创建静态文件夹来保存所有音乐文件来从客户端获取它。

https://wwwww.tutorialsteacher.com/nodejs/nodejs/nodejs/serving-static-serving-static-static-node-serving-static-static-static--coin- files-in-nodejs

I keep running into this error when trying to dynamically import a mp3 file.

enter image description here

I'm importing it this way.

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文