mkloubert / nativescript-toolbox

A NativeScript module that is a composition of useful tools and helpers.
MIT License
55 stars 14 forks source link

Webpack support #4

Open LeopoldPodmolik opened 7 years ago

LeopoldPodmolik commented 7 years ago

When I use this plugin with Webpack .. i got several errors ... because I use momentJS .. and I got several errors in locale folder ...

cmpere commented 6 years ago

Same over here, im trying to do # tns run android --bundle and something in the moment implementation bows out

"nativescript-toolbox": "^3.0.1",

nea commented 6 years ago

Hi

It seems moment.js is actually missing. You can add it for now in the sub-folder moment/. Just add the moment.js file as it is of course required.

Best

KirilOkun commented 6 years ago

Same problem here.
@nea Where did you find moment.js file?

nea commented 6 years ago

Hi @bearoutthere

moment.js I downloaded from the official repo and added it to the node_module where it was missing.

Best

KirilOkun commented 6 years ago

Thanks @nea. I got to the same point as well but then compared index.js in the plugin with the moment repo and they looked very similar. So i tried copying nativescript-toolbox/moment/index.js to nativescript-toolbox/moment/moment.js and it seems to work.