RSSHub-Radar icon indicating copy to clipboard operation
RSSHub-Radar copied to clipboard

手动安装插件时报content.js不是UTF-8编码的问题

Open good1uck opened this issue 5 years ago • 3 comments

image

即使是用VSCODE转编码为UTF-8后也是一直报这个问题。

文件目录应该没有问题,是用NPM装的(无ERROR) image

good1uck avatar Sep 26 '19 10:09 good1uck

完全没有头绪...试试 releases 里打包好的? https://github.com/DIYgod/RSSHub-Radar/releases

DIYgod avatar Sep 26 '19 15:09 DIYgod

我也复现了,mac os,dist编译后 未能成功加载扩展程序 文件 ~/桌面/mini/RSSHub-Radar/dist 错误 无法为内容脚本加载“content.js”文件。该文件采用的不是 UTF-8 编码。 无法加载清单。

AiPacino avatar Oct 16 '19 05:10 AiPacino

window 也复现了这个bug(使用npm安装的),content.js不是UTF-8编码。 但是使用yarn安装依赖并打包,就没有这个问题了。应该是npm安装的依赖里有问题。 建议用yarn安装依赖。

fuchengjx avatar Nov 08 '19 03:11 fuchengjx