nativescript-toolbox icon indicating copy to clipboard operation
nativescript-toolbox copied to clipboard

Webpack support

Open LeopoldPodmolik opened this issue 8 years ago • 5 comments

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

LeopoldPodmolik avatar Jul 13 '17 17:07 LeopoldPodmolik

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

"nativescript-toolbox": "^3.0.1",

cmpere avatar May 07 '18 17:05 cmpere

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

nea avatar May 21 '18 14:05 nea

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

BearOutThere avatar Aug 15 '18 10:08 BearOutThere

Hi @bearoutthere

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

Best

nea avatar Aug 15 '18 10:08 nea

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.

BearOutThere avatar Aug 15 '18 11:08 BearOutThere