webpack-to-vite icon indicating copy to clipboard operation
webpack-to-vite copied to clipboard

Unexpected character '�'. (1:0)

Open 2508644159 opened this issue 3 years ago • 5 comments

在项目的webpack转vite的过程中报了这个错误导致转换失败 企业微信截图_16316940915946

2508644159 avatar Sep 15 '21 08:09 2508644159

It is best to provide a GitHub repository that can reproduce the bug. Without reproducing use cases, it is difficult to solve the problem:(

<---------------------

最好提供可以复现bug的GitHub仓库,没有复现用例,很难解决问题:(

Chieffo2021 avatar Sep 16 '21 04:09 Chieffo2021

It looks like a character special file path problem, but I tried a Chinese path of the project, did not reproduce the problem

<----------------------

这看起来像是一个特殊字符的文件路径问题,但是我尝试了中文路径的项目,没有复现问题

Chieffo2021 avatar Sep 16 '21 04:09 Chieffo2021

Any chance the library can output the file in which it found the error? It's impossible to track down without knowing where the issue is.

slashwhatever avatar Sep 29 '21 15:09 slashwhatever

Any chance the library can output the file in which it found the error? It's impossible to track down without knowing where the issue is.

Thanks for your suggestion, can you submit a new issue with minimal test cases to describe specific scenarios to help us improve?

Chieffo2021 avatar Sep 30 '21 07:09 Chieffo2021

Please try again with the latest version, the issue should be resolved by 6bd0158

Chieffo2021 avatar Dec 20 '21 08:12 Chieffo2021