formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.89k stars 1.06k forks source link

Can't compile after installing @formio/js@5.0.0-rc.23 #5372

Open g8shen opened 1 year ago

g8shen commented 1 year ago

Hello,

I am trying to upgrade from @formio/angular 5.3.0 to 6.0.0-rc.6. Since 6.0.0-rc.6 depends on @formio/js@5.0.0-rc.23 I have also added it to my project dependencies. However now whenever I compile my project I receive these errors:

`./node_modules/@formio/js/lib/mjs/components/datagrid/DataGrid.js:389:23-50 - Error: export 'Components' (imported as 'Components') was not found in '../Components' (possible exports: default)

./node_modules/@formio/js/lib/mjs/components/datamap/DataMap.js:234:18-51 - Error: export 'Components' (imported as 'Components') was not found in '../Components' (possible exports: default)`

I am running this command in my terminal: yarn add @formio/angular@rc @formio/js

I have also tried removing node_modules and re-installing.

I am using yarn, any help would be greatly appreciated :)

MiguiTE commented 1 year ago

I don't know if this will help you but I fixed it by installing a newer version

npm i @formio/js@5.0.0-rc.27

But if you install the latest (rc28) the problem is back. Weird

lane-formio commented 1 month ago

We are expecting to officially release 5.0.0 in the next couple of months, please try 5.0.0-rc.80 and let me know if you are still having issues.