IjzerenHein / react-native-bundle-visualizer

See what packages are increasing your react-native bundle size 📦
MIT License
1.44k stars 42 forks source link

Module not found: Error: Can't resolve 'assets/image.png' #9

Closed brunolemos closed 5 years ago

brunolemos commented 6 years ago

Some places I have this code: const image = require('assets/image.png')

It works just fine, but when trying to use this lib it gives this error: Module not found: Error: Can't resolve 'assets/image.png'

Changing to relative path will probably fix it, but it shouldn't be necessary.

IjzerenHein commented 6 years ago

Hi, since this library is just a thin layer on top of Haul, the problem (and probably solution) should be there. I'd try submitting an issue there or checking whether an issue already exists.