question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] error installing the package

See original GitHub issue

Environment

Please provide as many details as you can:

  • Hosting type
    • [] Form.io
    • [x ] Local deployment
      • Version:
  • Formio.js version:
  • Frontend framework:React
  • Browser:
  • Browser version:

Steps to Reproduce

  1. yarn add formio-react
  2. gatsby develop

Expected behavior

everything fine

Observed behavior

...
ERROR in ./node_modules/formiojs/utils/index.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in '/home/marco/projects/halleymedia/residea/node_modules/formiojs/utils'
 @ ./node_modules/formiojs/utils/index.js 17:0-55
 @ ./node_modules/react-formio/lib/components/SubmissionGrid.js
 @ ./node_modules/react-formio/lib/components/index.js
 @ ./node_modules/react-formio/lib/index.js
 @ ./src/components/formSeiInteressato.js
 @ ./src/templates/dettaglioImmobile.js
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi ./node_modules/event-source-polyfill/src/eventsource.js (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

ERROR in ./node_modules/formiojs/utils/builder.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in '/home/marco/projects/halleymedia/residea/node_modules/formiojs/utils'
 @ ./node_modules/formiojs/utils/builder.js 13:0-55
 @ ./node_modules/formiojs/PDFBuilder.js
 @ ./node_modules/formiojs/FormBuilder.js
 @ ./node_modules/react-formio/lib/components/FormBuilder.js
 @ ./node_modules/react-formio/lib/components/index.js
 @ ./node_modules/react-formio/lib/index.js
 @ ./src/components/formSeiInteressato.js
 @ ./src/templates/dettaglioImmobile.js
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi ./node_modules/event-source-polyfill/src/eventsource.js (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

ERROR in ./node_modules/formiojs/utils/utils.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in '/home/marco/projects/halleymedia/residea/node_modules/formiojs/utils'
 @ ./node_modules/formiojs/utils/utils.js 49:0-55
 @ ./node_modules/formiojs/Wizard.js
 @ ./node_modules/react-formio/lib/index.js
 @ ./src/components/formSeiInteressato.js
 @ ./src/templates/dettaglioImmobile.js
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi ./node_modules/event-source-polyfill/src/eventsource.js (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

ERROR in ./node_modules/formiojs/utils/formUtils.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in '/home/marco/projects/halleymedia/residea/node_modules/formiojs/utils'
 @ ./node_modules/formiojs/utils/formUtils.js 31:0-55
 @ ./node_modules/formiojs/utils/utils.js
 @ ./node_modules/formiojs/Wizard.js
 @ ./node_modules/react-formio/lib/index.js
 @ ./src/components/formSeiInteressato.js
 @ ./src/templates/dettaglioImmobile.js
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi ./node_modules/event-source-polyfill/src/eventsource.js (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

ERROR in ./node_modules/formiojs/widgets/InputWidget.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in '/home/marco/projects/halleymedia/residea/node_modules/formiojs/widgets'
 @ ./node_modules/formiojs/widgets/InputWidget.js 17:0-55
 @ ./node_modules/formiojs/widgets/index.js
 @ ./node_modules/formiojs/components/_classes/input/Input.js
 @ ./node_modules/formiojs/components/hidden/Hidden.js
 @ ./node_modules/formiojs/components/index.js
 @ ./node_modules/react-formio/lib/components/Form.js
 @ ./node_modules/react-formio/lib/components/index.js
 @ ./node_modules/react-formio/lib/index.js
 @ ./src/components/formSeiInteressato.js
 @ ./src/templates/dettaglioImmobile.js
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi ./node_modules/event-source-polyfill/src/eventsource.js (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

ERROR in ./node_modules/formiojs/widgets/CalendarWidget.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in '/home/marco/projects/halleymedia/residea/node_modules/formiojs/widgets'
 @ ./node_modules/formiojs/widgets/CalendarWidget.js 27:0-55
 @ ./node_modules/formiojs/widgets/index.js
 @ ./node_modules/formiojs/components/_classes/input/Input.js
 @ ./node_modules/formiojs/components/hidden/Hidden.js
 @ ./node_modules/formiojs/components/index.js
 @ ./node_modules/react-formio/lib/components/Form.js
 @ ./node_modules/react-formio/lib/components/index.js
 @ ./node_modules/react-formio/lib/index.js
 @ ./src/components/formSeiInteressato.js
 @ ./src/templates/dettaglioImmobile.js
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi ./node_modules/event-source-polyfill/src/eventsource.js (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
...

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
randallknutsoncommented, Feb 21, 2020

What version of core-js is your app using? react-formio uses verison 3 so if there is a mismatch you may get this error.

0reactions
jonathanstanleycommented, Jul 24, 2020

Gatsby has upgraded core-js (see https://github.com/gatsbyjs/gatsby/issues/15601). That upgrade resolved the issue for me.

I believe this issue can be closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixed: “There is a problem with this Windows installer package ...
In this article, you will learn how to fix the “There is a problem with this Windows installer package” error on Windows 10....
Read more >
How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
How to Fix Windows Installer Package Problem [Tutorial]
How To Fix Windows Installer Package Problem. Registry Entry: msiexec /i "%1"Most programs can be installed on Windows computer normally.
Read more >
[Bug?]: Error installing package from github url · Issue #3194
I tried to use update to npm 7 and I get the same error. It doesn't complain about This version of npm is...
Read more >
Error in installation a R package - Stack Overflow
The part that worked for me was to quit RStudio, delete the package from the libs directory and re-install from vanilla R. Thanks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found