coinbase / react-coinbase-commerce

Coinbase Commerce React
Apache License 2.0
92 stars 57 forks source link

"Element type is invalid" error when rendering button #55

Closed rahulgi closed 3 years ago

rahulgi commented 3 years ago

Somewhere in the upgrade from version 1.4.4 to version 1.5.0, an error got introduced that causes the button to throw an error when rendering.

The error is: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object..

Very simple CodeSandbox. If you switch the react-coinbase-commerce version to 1.4.4 in the package.json file, you'll see the button start to work again.

scorbajio commented 3 years ago

Somewhere in the upgrade from version 1.4.4 to version 1.5.0, an error got introduced that causes the button to throw an error when rendering.

The error is: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object..

Very simple CodeSandbox. If you switch the react-coinbase-commerce version to 1.4.4 in the package.json file, you'll see the button start to work again.

yup

oa-coinbase commented 3 years ago

Taking a look at this today, thanks for raising the issue! For now please keep on 1.4.4.

oa-coinbase commented 3 years ago

@rahulgi @Ghorbanian There was an issue with the webpack export and it should be fixed now in version 1.5.1.