Babel runtime error


After upgrading the dependencies of a project, this error showed up:

Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault' from 'index.js'

The solution was to install a specific version of babel runtime:

$ npm install --save-dev --exact @babel/[email protected]