You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
and I'm getting the following error when using AutoForm from uniforms-patternfly
Uncaught TypeError: Class constructor AutoForm cannot be invoked without 'new'
at new _ (webpack-internal:///./node_modules/uniforms-patternfly/dist/esm/AutoForm.js:15)
at constructClassInstance (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:12716)
at updateClassComponent (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:17425)
at beginWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:19073)
at HTMLUnknownElement.callCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:3945)
at Object.invokeGuardedCallbackDev (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:3994)
at invokeGuardedCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:4056)
at beginWork$1 (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:23959)
at performUnitOfWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:22771)
at workLoopSync (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:22702)
The text was updated successfully, but these errors were encountered:
This happened to me often in the past, it's likely caused by multiple versions of uniforms in your project. You can check it using nvm ls uniforms or yarn why uniforms.
If you have multiple versions of it, you should try to pin the dependencies so as to have all the versions aligned. I rarely managed to fix the problem this way, but it might help you.
my project dependencies are:
and I'm getting the following error when using
AutoForm
fromuniforms-patternfly
The text was updated successfully, but these errors were encountered: