Closed RyannGalea closed 4 years ago
Try installing the next
version of the webpack-plugin.
npm install --save-dev @arcgis/webpack-plugin@next
This will copy over the new translation files during the build process.
We'll get this into the readme.
Working on my end now, using both next packages and '/next' as my default worker url.
I also had to add the 'root' field to my webpack plugin as it was using Angulars route on load to try and find the Esri files, so if I refreshed into a nested route it would error out. I did not have to do this in previous version.
new ArcGISPlugin({
root: "./"
})
@RyannGalea sorry for the late reply, not sure if you were aware, here is a working example with the arcgis-webpack-plugin and Angular 9: https://github.com/Esri/angular-cli-esri-map/tree/arcgis-webpack-angular. I didn't see any issues with using "@arcgis/webpack-plugin": "^4.16.0-next.20200427"
other than having to change the SCSS to @import url('https://jsdev.arcgis.com/4.16/esri/themes/light/main.css');
Also, fyi if you set "esModuleInterop": true
in tsconfig.json
then you can use this pattern in your component files. I'm working on updating our docs to clarify this:
import Map from "esri/Map";
import MapView from "esri/views/MapView";
import FeatureLayer from "esri/layers/FeatureLayer";
import SimpleRenderer from "esri/renderers/SimpleRenderer";
import SimpleMarkerSymbol from "esri/symbols/SimpleMarkerSymbol";
Hi Guys,
Currently developing an Angular 9 project where I'm using this package Without any issues as shown below. I have been using version:
My custom webpackconfig, which i comment out which packages i want to include.
I thought I'd upgrade to the latest version to begin using it and have come across loading issues & also promise issues I am guessing, I seen there is a breaking change to the promise's but unsure how to resolve if that is the issue.
Here is what I get when I upgrade to version:
Image ref: https://ibb.co/W328Y28
I also update the following to 4.16 or 'next' which did fix some errors but not all
Thanks for taking a look, I Don't see this documented anywhere which is up to date.