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'
Solved! Go to Solution.
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!
Hi @4andy I suggest reporting this to support for deeper investigation if you are able to https://support.esri.com/en-us/contact
Will do thanks.
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!
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!