- CRA: npm create-react-app arcgis-react, and npm install,
- npm install @arcgis-webpack-plugin,
- npm run eject,
- add new ArcGISPlugin() to config/webpack.config.js
const ArcGISPlugin = require("@arcgis/webpack-plugin");
...
module.exports = {
...
plugins: [
...
new ArcGISPlugin(),
... ]
...
}
- npm start.
Compiled failed. And the error is
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)
How to solve this problem? Thanks.