react-bootstrap-datetimepicker icon indicating copy to clipboard operation
react-bootstrap-datetimepicker copied to clipboard

Babel Reference error

Open maxcc0 opened this issue 9 years ago • 6 comments

Getting this error in the Gulp console: [ReferenceError: [BABEL] C:\Apps\workspace\betty.acdb.ui\node_modules\react-bootstrap-datetimepicker\lib\DateTimeField.js: Unknown option: C:\Apps\workspace\betty.acdb.ui\node_modules\react-bootstrap-datetimepicker.babelrc.optional while parsing file: C:\Apps\workspace\betty.acdb.ui\node_modules\react-bootstrap-datetimepicker\lib\DateTimeField.js

This is the content inside babel.rc { "optional": ["runtime"], "stage": 0 } When I deleted the config inside babel.rc, it works fine.

maxcc0 avatar Jan 15 '16 04:01 maxcc0

+1, I have the same problem

MichaelKostin avatar Jan 28 '16 12:01 MichaelKostin

This happens probably because you don't exclude the node modules from the babel loader. Take a look of the exclude property when using a loader

xabikos avatar Feb 04 '16 13:02 xabikos

I'm using browserify, can you suggest how to fix this ??

maxcc0 avatar Feb 13 '16 05:02 maxcc0

I have the same problem~ @maxcc0 Have you solved? I deleted the configuration of babel.rc in "react-bootstrap-datetimepicker"

jinmingpang avatar Oct 14 '16 03:10 jinmingpang

Hi @CareyToboo, I have fixed the issue after changing of browserify config. As I remember, it was related on entries or external packages. Currently I'm not in office, and not available to show worked example. Try to check browserify task from this file. https://github.com/MichaelKostin/home-camera/blob/master/front/gulpfile.js

MichaelKostin avatar Oct 15 '16 09:10 MichaelKostin

@xabikos I am using this module in common-component and include common-component like node_modules dependency. then I can't exclude node_modules, So How to fix any idea.

vipulgoyal112 avatar May 10 '17 08:05 vipulgoyal112