react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Hot Module Reloading crashes packager when adding images.

Open dslounge opened this issue 10 years ago • 4 comments

Hi,

I've been trying to figure a problem with the packager server. Whenever I add a new image to my files the packager server crashes due to Syntax Error: ... Unexpected character '�'. Here's a screenshot:

Should HRM be trying to parse images? Is there a way that I can get to not do that?

dslounge avatar May 23 '16 16:05 dslounge

It builds a map on server startup. You just have to restart the server. It's not an HMR issue. If you just do a regular reload I think you'll have the same problem unless that got changed recently.

jpokrzyk avatar May 23 '16 19:05 jpokrzyk

This happens because, for some reason, the package tries to parse image files (or even sent them through babel). I tried using a ignore or only directive in my .babelrc which make the error go away, but crash the transformer at a different point instead.

fab1an avatar May 25 '16 13:05 fab1an

same problem

viix avatar Jun 15 '16 10:06 viix

Duplicate of #7279

satya164 avatar Jun 15 '16 12:06 satya164