Babel Reference error
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.
+1, I have the same problem
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
I'm using browserify, can you suggest how to fix this ??
I have the same problem~ @maxcc0 Have you solved? I deleted the configuration of babel.rc in "react-bootstrap-datetimepicker"
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
@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.