IjzerenHein / react-native-bundle-visualizer

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

failed to compile because of babel-loader #11

Closed LordST95 closed 5 years ago

LordST95 commented 5 years ago

Hi, when I want to run, I get the error below (node:25862) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead

ERROR Failed to compile.

./node_modules/haul/src/vendor/polyfills/String.prototype.es6.js Module build failed (from ./node_modules/babel-loader/lib/index.js): ...............

what should I do?

IjzerenHein commented 5 years ago

Can you provide some more information or screenshots/logs about the problem? Also, what version or node-js are you running? Cheers

LordST95 commented 5 years ago

screenshot from 2018-09-18 14-57-19 Node: v8.11.1 RN: 0.56 this is the screenShot and more information, I guess the problem is with haul but I can't figure out how to handle it :))

IjzerenHein commented 5 years ago

Yes it indeed seems to be with Haul. Were you using Haul already in this project? Also, you could try installing the latest version of haul into your project and see whether that solves the problem. Let me know whether that works, I might need to release an update which uses the latest Haul bundler. Cheers

LordST95 commented 5 years ago

No, I just use the default bundler of RN, when I search about this error, some guys were said that changing the configurations of their webPack's config file could solve this, and because I have not experience in working with webpack and haul, I gues maybe you could help me.

IjzerenHein commented 5 years ago

Well, what I would try when I was you, is to install the latest Haul bundler and try to run it with your project. And when you run into a problem, post an issue on the Haul repo with some detailed information. Probably people over there will be able to help you.

LordST95 commented 5 years ago

Ok, thanks for ur help, GoodLuck ;)