Open rikhav-parsegon opened 3 years ago
Hey @rikhav-parsegon! Thanks for report.
Unfortunately, I can't reproduce the problem. It seems that you have > 1 react instances in your project.
Could you provide npm ls react
or yarn list react
output?
npm ls react
is printing
@parsegon/js@1.0.0 /Users/rikhav/Desktop/frontend/app
├─┬ @uploadcare/react-widget@1.3.5
│ ├─┬ @uploadcare/client-suspense@1.0.5
│ │ └── react@16.14.0 deduped
│ └── react@16.14.0 deduped
└── react@16.14.0
On a hunch, I disabled code splitting by adding the plugin new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 })
to our config, and that seems to have fixed the issue.
Using the Widget throws an invalid hook call error.
There are two errors that appear in the console:
This occurred when integrating uploadcare into our existing React app, following step 2 here
To reproduce, run
and include
Environment
build-info.json
: