jsapi-resources: @arcgis/core: webpack error in 4.24 - "no loaders are configured to process this file"

@arcgis/core version @arcgis/cor4.23 Which version of @arcgis/core, for example @arcgis/core@4.21.2? Run npm ls @arcgis/core` in a terminal window.

Questions related to next releases of @arcgis/core need to be addressed on the https://github.com/Esri/feedback-js-api-next repo.

Framework and build tools

rollup2.75.6

Describe the bug why I use @arcgis/core 4.25packeage by rollup but packgageed result is reference 4.24, and the use of modular import reports an error image

Expected behavior

See https://js.arcgis.com/4.23/esri/copyright.txt

Reproduce the issue Steps to reproduce the behavior. Please provide github repo, codepen or equivalent so that we can reproduce the issue.

Browser (check https://whatismybrowser.com/)

  • Browser: [e.g. “Chrome 87 on Windows 10”]

Operating System (check https://whatsmyos.com):

  • OS: [e.g. “Apple iOS 15” or “Windows 10* 64-bit”]
  • Device: [e.g. “iPhone 11” or “Samsung Galaxy S21”]

Additional context Anything else that will help.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (16 by maintainers)

Most upvoted comments

Thanks everyone for reporting this information. We’ve identified this as a Known Issue with Webpack 4 and JS API versions 4.24+. A work-around has been posted here: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/webpack#known-issues.

If possible, we recommend migrating off Webpack 4, it is our understanding that it is getting critical fixes, only. The last release of Webpack 4 was 4.46.0 in January 2021.

Is there a combination of packages that will let you upgrade the project to vue 3 and webpack 5?

Nuxt v3 uses Vue v3 and Vite, but it is still unstable so I’d prefer to hold off on migrating the sample just yet.