Select to view content in your preferred language

Unable to build Javascript app after 4.32 upgrade

533
5
Jump to solution
03-05-2025 08:31 AM
4andy
by
Emerging Contributor

I upgraded a Javascript app to version 4.32 via the npm package manager and now the app is unable to build. The app built without issue at version 4.31. I am using parcel as the build manager.  Below is the error and package versions I am using. Any ideas? Thanks.

├── @ArcGIS/core@4.32.5
├── @esri/calcite-components@3.0.3

:police_car_light: Build failed.

@parcel/core: Failed to resolve '@esri/calcite-components/dist/components' from './node_modules/@arcgis/core/widgets/support/componentsUtils.js'

  C:\non-sync\civ\GeospatialCATapps\civ\app\node_modules\@arcgis\core\widgets\support\componentsUtils.js:5:52
    4 | */
  > 5 | }from"@esri/calcite-components/dist/components";import{getAssetUrl as s}from"../../assets.js";import"../../core/has.js";import{makeAbsolute as e}from"../../core/urlUtils.js";let n;function r(){t||o(e(s(n)))}function c(t){const o=[];for(const s of Object.keys(t))customEl
  >   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    6 |

@parcel/resolver-default: Cannot load file './dist/components' from module '@esri/calcite-components'

 

0 Kudos
1 Solution

Accepted Solutions
LaurenBoyd
Esri Contributor

Hi @4andy -

This seems to be a Parcel issue. Can you try to enable package exports as outlined here: https://parceljs.org/features/dependency-resolution/#enabling-package-exports 

Hope this helps!

Lauren

View solution in original post

0 Kudos
5 Replies
Stephanie_F
Esri Contributor

Hi @4andy I suggest reporting this to support for deeper investigation if you are able to https://support.esri.com/en-us/contact

0 Kudos
4andy
by
Emerging Contributor

Will do thanks.

0 Kudos
LaurenBoyd
Esri Contributor

Hi @4andy -

This seems to be a Parcel issue. Can you try to enable package exports as outlined here: https://parceljs.org/features/dependency-resolution/#enabling-package-exports 

Hope this helps!

Lauren
0 Kudos
4andy
by
Emerging Contributor

Will do Lauren. I'll check it out tomorrow. Thanks (and yes this is the Andrew of former SDK support 🙂 

4andy
by
Emerging Contributor

I got it to work but I had to add the cofigs as suggested and also delete the old build caches etc. With the config, and no previous cache it was able to build! Thanks!

0 Kudos