Javascript: Solved using ES6 split on String leads to error with Babel
Dienstag, 04. Mai 2021, 12:22 Uhr | roberto@vasquez-angel.de |When using string split and transpiling your code with Babel you may get following error:
Cannot find module 'core-js/modules/es.string.split.js' from 'dist/i18n.js'
Solve it by add ing core-js to your dev package:
yarn add --dev core-js
More about core-js can be found here: https://alexbogovich.com/blog/core-js/