A recent error was discovered when building the e-commerce online SDK if you are using the "Image" component within your customization, you will see a build error:
'Image' cannot be used as a JSX component. "Its instance type 'Image' is not a valid JSX element"
The root cause is due to a dependency component recently took a dependency on React 18.x which conflicts with other dependencies taking a dependency on version 16.x. The work around is to specify the version in the resolutions section of the package.json file to include "@types/react": "16.9.0", as shown below:
...
"resolutions": {
A fix has been published to the online SDK package.json file, however if you already have pulled down the SDK from the GitHub repo, you will need to manually apply the fix as shown above.
thanks,
Sam