Closed gagdiez closed 11 months ago
React-Bootstrap-Typeahead has a helper function called hasOwnProperty
. I believe what's happening is that Parcel's esmodule-helpers are trying to call that rather than Object.prototype.hasOwnProperty
.
Suggested fix is to call the prototype function directly, which is safer:
Object.prototype.hasOwnProperty.call(dest, key)
can confirm that @ericgio suggestion works, will see to contribute it except if @ericgio prefers to do it (since it was their finding).
π bug report
Parcel is failing to load the react-bootstrap-typeahead component, failing with the error: TypeError: Cannot read properties of undefined (reading 'default')
π Configuration (.babelrc, package.json, cli command)
see repository bellow
minimal repo to reproduce error here: https://github.com/gagdiez/rbt-error-minimal
π€ Expected Behavior
The library should load and no error be displayed
π― Current Behavior
π¦ Context
Trying to build an application that uses that Component
π» Code Sample
minimal repo to reproduce error here: https://github.com/gagdiez/rbt-error-minimal
π Your Environment