Errors compiling @arcgis/core with create-react-app 5

607
2
12-20-2022 02:45 AM
ÁlvaroLeal
New Contributor

Can't import the named export 'BUILD'.'hydratedAttribute' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 2891:8-21
Can't import the named export 'BUILD'.'profile' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 2934:11-34
Can't import the named export 'BUILD'.'hydrateServerSide' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 2936:11-34
Can't import the named export 'BUILD'.'hydrateServerSide' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 2956:6-24
Can't import the named export 'BUILD'.'hostListener' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 2961:8-38
Can't import the named export 'BUILD'.'hostListenerTargetParent' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 2989:19-43
Can't import the named export 'BUILD'.'hostListenerTarget' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3002:10-24
Can't import the named export 'BUILD'.'lazyLoad' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3018:6-38
Can't import the named export 'BUILD'.'hostListenerTargetDocument' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3019:6-36
Can't import the named export 'BUILD'.'hostListenerTargetWindow' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3020:6-34
Can't import the named export 'BUILD'.'hostListenerTargetBody' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3021:6-36
Can't import the named export 'BUILD'.'hostListenerTargetParent' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3185:6-17
Can't import the named export 'BUILD'.'isDev' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3188:6-18
Can't import the named export 'BUILD'.'method' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3188:22-36
Can't import the named export 'BUILD'.'lazyLoad' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3193:6-24
Can't import the named export 'BUILD'.'asyncLoading' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3209:23-38
Can't import the named export 'BUILD'.'isTesting' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3240:6-17
Can't import the named export 'BUILD'.'isDev' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3244:16-42
Can't import the named export 'BUILD'.'hotModuleReplacement' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3254:44-70
Can't import the named export 'BUILD'.'hotModuleReplacement' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3255:9-35
Can't import the named export 'BUILD'.'hotModuleReplacement' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3264:10-26
Can't import the named export 'BUILD'.'cssVarShim' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3296:21-40
Can't import the named export 'BUILD'.'shadowDomShim' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3296:44-59
Can't import the named export 'BUILD'.'shadowDom' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3313:39-61
Can't import the named export 'BUILD'.'constructableCSS' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3363:6-22
Can't import the named export 'BUILD'.'asyncQueue' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3371:6-22
Can't import the named export 'BUILD'.'asyncQueue' (imported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3400:0-72
Can't import the named export 'BUILD' (reexported as 'BUILD') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3400:0-72
Can't import the named export 'Env' (reexported as 'Env') from default-exporting module (only default export is available)

ERROR in ./node_modules/@stencil/core/internal/client/index.js 3400:0-72
Can't import the named export 'NAMESPACE' (reexported as 'NAMESPACE') from default-exporting module (only default export is available)

ERROR in ./node_modules/@arcgis/core/widgets/support/chartUtils.js 260:10-16
export 'chartColorSets' (imported as 't') was not found in '@esri/calcite-colors' (module has no exports)

webpack compiled with 571 errors

0 Kudos
2 Replies
ReneRubalcava
Frequent Contributor

Do you have a repo sample showing the issue, like what you're importing and stuff. We have a 4.24 cra sample here.

https://github.com/Esri/jsapi-resources/tree/legacy/esm-samples/jsapi-create-react-app

0 Kudos
ÁlvaroLeal
New Contributor

Hi @ReneRubalcava! This is the repo that I'm working on https://github.com/Vizzuality/half-earth-v3

0 Kudos