Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加图片后报 Unexpected character 错误 #2

Open
haibinyu opened this issue Nov 2, 2016 · 0 comments
Open

添加图片后报 Unexpected character 错误 #2

haibinyu opened this issue Nov 2, 2016 · 0 comments

Comments

@haibinyu
Copy link
Owner

haibinyu commented Nov 2, 2016

问题描述

在 app开发过程中,添加了新的图片之后,有时会出现如下错误:

Unexpected character '�' (1:0)

具体issue可参见这里

原因分析

可能的原因是 npm start的时候React Native会生成一份图片的map,新加入的图片导致map出现问题。

解决方案

重启packager:

npm start
@haibinyu haibinyu changed the title 添加图片后报Unexpected character错误 添加图片后报 Unexpected character错误 Nov 2, 2016
@haibinyu haibinyu changed the title 添加图片后报 Unexpected character错误 添加图片后报 Unexpected character 错误 Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant