Create-react-app. then add arcgis/webpack-plugin, compiled failed.

407
0
12-22-2019 11:52 PM
ensucao
New Contributor
  1. CRA: npm create-react-app arcgis-react, and npm install,
  2. npm install @arcgis-webpack-plugin,
  3. npm run eject,
  4. add new ArcGISPlugin() to config/webpack.config.js
    const ArcGISPlugin = require("@arcgis/webpack-plugin");
    ...
    module.exports = {
    ...
    plugins: [
    ...
    new ArcGISPlugin(),
    ... ]
    ...
    }
  5. 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.

0 Kudos
0 Replies