0👍
✅
The issue stemmed from a Babel configuration that did not support dynamic imports.
Resolved by:
-
Installing @babel/plugin-syntax-dynamic-import
npm i @babel/plugin-syntax-dynamic-import
-
Adding it to .babelrc like so:
{
...
"plugins": [
"@babel/plugin-syntax-dynamic-import",
],
...
}
Source:stackexchange.com