Closed gagdiez closed 1 year ago
Hey @gagdiez thanks for the report! I believe this is an issue with Parcel, albeit a very strange one. It looks like this line is calling dest.hasOwnProperty(key)
. However, React-Bootstrap-Typeahead has a helper function named hasOwnProperty
. So rather than calling the prototype function, Parcel is trying to invoke the util function from this library and failing because it passes the wrong arguments. So they probably should change how they call hasOwnProperty
to something like Object.prototype.hasOwnProperty.call(dest, key)
.
Version
6.3.1
Steps to reproduce
Clone this repository: https://github.com/gagdiez/rbt-error-minimal
Then:
TypeError: Cannot read properties of undefined (reading 'default')
Expected Behavior
No error should be shown
Actual Behavior
Error appears: TypeError: Cannot read properties of undefined (reading 'default')`