Unable to import SchemaField
: Uncaught ReferenceError: Cannot access '__WEBPACK_DEFAULT_EXPORT__' before initialization
#2480
Labels
tl;dr
Cyclic dependency error prevents the importing of
SchemaField
with Webpack 5.SchemaField.js
->utils.js
->fields/index.js
->SchemaField.js
(Sokra mentions the error below is what you'll receive when you have a cyclic dependency in Webpack.)
(#2341 looks related.)
Description
The following code in a Webpack 5 project:
Results in the following error:
Code from stack trace
browser.vendors.js:1923
lines1914
to1930
:browser.vendors.js:1923
lines4312
to4374
:@rjsf/core/lib/components/fields/index.js
lines1
to25
:Expected behaviour
I expect to be able to import
SchemaField
when using webpack.Actual behaviour
I receive the above-mentioned error.
Version
The text was updated successfully, but these errors were encountered: