Code Monkey home page Code Monkey logo

Comments (9)

andygup avatar andygup commented on June 15, 2024 1

@mfcallahan No update on the tests, we've been focused on the ES modules (beta). That build will be available in a few weeks along with the 4.18 release. You can try out the pre-release version of the ES modules today:

npm install @arcgis/core

from angular-cli-esri-map.

andygup avatar andygup commented on June 15, 2024

Yep, the failing karma tests are a known issue and I haven't had a chance to look into it. From what I remember esri, dojo and digit modules weren't resolving correctly. Probably have to specify the arcgis-webpack-plugin in karma config and possibly create a separate webpack-test.config.

from angular-cli-esri-map.

HawkPK avatar HawkPK commented on June 15, 2024

I have a similar one. I am using Angular 9. I got the following error: ' Cannot find namespace '__esri'.' I tried a few solution even what @andygup proposed but they did not work. I found this thread: Link and it was directed me here. Has somebody resolved this issues successfully ? Thank you

from angular-cli-esri-map.

hokivpn avatar hokivpn commented on June 15, 2024

Any update on this issue or at least a workaround ?

from angular-cli-esri-map.

andygup avatar andygup commented on June 15, 2024

No workaround, yet, I haven't had time to work on it. However, we are making great progress on an ESM build of the ArcGIS API for JavaScript that will be available later this year or early next year. Once we have that, it will be significantly easier to build tests.

I'll also check with a few folks here that hinted they might have solved the issue using our AMD build.

from angular-cli-esri-map.

mfcallahan avatar mfcallahan commented on June 15, 2024

Any update on this issue?

from angular-cli-esri-map.

mfcallahan avatar mfcallahan commented on June 15, 2024

Awesome, I'm going to give it a try! I've been looking forward to version of the API which which can be included in an app directly thru npm. Is there a roadmap or FAQ for the future of the ArcGIS API for JavaScript? I'm curious to know what the path forward looks like as far as Esri supporting the AMD modules, the Webpack plugin, the esri-loader, and npm.

from angular-cli-esri-map.

andygup avatar andygup commented on June 15, 2024

Just small tweaks, really. AMD modules will continue to be shipped for the foreseeable future for CDN and local builds. Webpack-plugin will still be shipped and it will get an update to provide helper capabilities when using the ES modules. Esri-loader will still be available, it will just get a README update.

[Additional - forgot to add] This repo is going to be deprecated and replaced by a single esm-samples repo. You can preview that in this PR: Esri/jsapi-resources#229

from angular-cli-esri-map.

andygup avatar andygup commented on June 15, 2024

Closing.

from angular-cli-esri-map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.