Other HPE Product Questions
1753877 Members
7294 Online
108809 Solutions
New Discussion

Grommet v2 Upgrade

 
Lohithkumar
Occasional Visitor

Grommet v2 Upgrade

Hi Team,

I am trying to upgrade grommet v1 to v2 in my react application but facing some issues. Kindly help me out to solve this issue. 

I have tried all the way possible but still some issues are there. 

I have installed the latest grommet package through npm and updated all the code changes in my application but still I am getting below error.

Error : Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `MyApp`.

The above error occurred in the <Beforeunload> component:
in Beforeunload (at MyApp.js:592)
in MyApp (created by Connect(MyApp))
in Connect(MyApp) (at index.js:20)
in Provider (at index.js:19)

Consider adding an error boundary to your tree to customize error handling behavior.

Please give me some solution if anyone knows about this error.

Thanks

 

2 REPLIES 2
Parvez_Admin
Community Manager

Re: Grommet v2 Upgrade

Hello @Lohithkumar ,

Could you tell us which HPE product you are referring to, so that the post can be moved to the correct discussion forum.

 


Thanks,
Parvez_Admin
I work for HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
CM_Cert_Logo_Color.png
Lohithkumar
Occasional Visitor

Re: Grommet v2 Upgrade

Hi,

 

I am referring to grommet library team. Need some help to upgrade the version.

Thanks