I'm building a reusable component. The component uses @arcgis/core along with other ui.
I'm able to install and use my library in any react application, when I try to build the react app I'm getting the below error.
./node_modules/@jlibrary/mapbuildtest/dist/index-fc2c8712.js 69378:9
Module parse failed: Identifier 'e' has already been declared (69378:9)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| };
|
> for (var e = 48; e < 58; e++) {
| L0[e] = String.fromCharCode(e);
| }