question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

@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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
andygupcommented, Jul 21, 2022

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.

1reaction
benelancommented, Jul 20, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build error with @arcgis/core and Angular 11 - Esri Community
Error : ./node_modules/@arcgis/core/core/has.js 5:101 Module parse failed: Unexpected token (5:101) File was processed with these loaders: * ...
Read more >
Build error Angular 11 and ArcGIS: You may need an ...
Error : ./node_modules/@arcgis/core/core/has.js 5:101 Module parse failed: Unexpected token (5:101) File was processed with these loaders: * ...
Read more >
Build with ES modules | ArcGIS Maps SDK for JavaScript 4.25
The ArcGIS Maps SDK for JavaScript 's ES modules are available for local installation from npm via the @arcgis/core package.
Read more >
ArcGIS JS API 4.9.3 + Angular 7 -- Build fails with "Module not ...
I've successfully configured @angular-builders/custom-webpack to add the ... Module not found: Error: Can't resolve 'fs' in 'E:\p\CE.
Read more >
arcgis api 4.23更新至4.24版本后项目启动就报错了
用npm arcgis api 4.23.7更新至4.24.7版本后项目,启动时报错了,vue的版本 ... currently no loaders are configured to process this file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found