Clone the repository into client directory for Experience Builder >=1.9
Run npm install
from inside the cloned repository directory.
Update the widget-webpack-override.js to include the two react jsx lines bellow and look like the following per https://developers.arcgis.com/experience-builder/guide/override-webpack-config/. This is required for the react-data-grid library.
module.exports = function (webpackConfig) {
/**
* If you need to change the widget webpack config, you can change the webpack config here and return the changed config.
*/
'use strict';
webpackConfig.resolve.alias['react/jsx-dev-runtime'] = 'react/jsx-dev-runtime.js';
webpackConfig.resolve.alias['react/jsx-runtime'] = 'react/jsx-runtime.js';
return webpackConfig;
}
Upgrading hosted Experience Builder versions:
- Download and unzip latest experience builder developer edition
- Pull github repo into client folder
- Run npm install in both the client and server folders
- Copy files from previous version into the new one (keep all locations the same)
- server/src/runZipApp.js
- the whole server/public folder
- Make the above updates to widget-webpack-override.js
- Add "IS_DE=true" build:dev command in client/package.json
- Remove existing service
- Stop exp-server
- cd /server
- npm run uninstall-windows-service
- Rename old installation with _backup
- Copy new installation from /ArcGISExperienceBuilder into D://R9Web
- Create new service
- cd /server
- npm run install-windows-service
- Build widgets
- cd /client
- npm run build:dev