Closed nightsu closed 4 years ago
I have the same issue. Any fixes?
I have the same issue. Any fixes?
@shehabelhariry No, I think maybe there are some compatibility problems between CRA and arcgis webpack plugin. But there is another method: You can use the arcgis-js-cli to create a react arcgis template https://github.com/Esri/arcgis-js-cli#quick-start arcgis create jsapi-react-app -t react Hope it could help you.
@nightsu Thank you. The thing is I am integrating the api into an existing CRA. I used the esri-loader method and it worked successfully.
Hello everybody, @nightsu I've just tried to introduce jsapi4 into a CRA template, using react-app-rewired. it worked but the esri icons didnt yet worked if you have any suggestion to improve you can contribute.
this is the demo https://github.com/boualikamel/cra-arcgis
i've juste fixed the icon problem, i hope that will help you dude
Are we good with react-app-rewired solution here? Can this issue be closed?
this is the demo: https://github.com/nightsu/arcgis-react.git
Description
const ArcGISPlugin = require("@arcgis/webpack-plugin");
...
module.exports = {
...
plugins: [
...
new ArcGISPlugin(),
... ]
...
}
Expected Behavior
compile succeeded.
Actual Behavior
compile failed. error:
if (!request.context.issuer) { ^ TypeError: Cannot read property 'issuer' of undefined at resolver.hooks.file.tapAsync (..\arcgis-react\node_modules\react-dev-utils\ModuleScopePlugin.js:26:30)
Possible Fix
Steps to Reproduce
1.download or clone https://github.com/nightsu/arcgis-react.git 2.npm install 3.npm start
Context
Your Environment