inductiveautomation / ignition-sdk-examples

Ignition SDK Example Projects
164 stars 92 forks source link

update react, webpack, remove /main/ from res urls #77

Closed PerryAJ closed 3 years ago

PerryAJ commented 3 years ago

This updates the gateway-webpage example to function correctly on Ignition 8.0 and 8.1.

A number of updates to nodejs dependencies were required to bring it inline with the current Ignition (see package.json).

In concert with these version changes, some minor changes were required to the javascript that gets bundled. Namely:

  1. Get rid of usage of deprecated React.createClass
  2. Get rid of the declared PropTypes. Proptypes aren't technically deprecated, but the usage wasn't really meaningful here.
  3. update readme a bit
  4. remove the /main/ from the resource urls, as it's deprecated. While it may still work due to internal redirection, the best practice is to omit it for ignition 8.0+.
PerryAJ commented 3 years ago

Changes submitted in response to user reported failure to load status page. See forum thread