Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State v1.0 models - fixed build for React widgets #98

Open
ModelEarth opened this issue Sep 6, 2024 · 0 comments
Open

State v1.0 models - fixed build for React widgets #98

ModelEarth opened this issue Sep 6, 2024 · 0 comments

Comments

@ModelEarth
Copy link
Contributor

ModelEarth commented Sep 6, 2024

These fixes are applied in our modelearth forks - updates by Lakshit

  1. Package.js line 37 is pointed at modelearth/useeio.js repo for tslib fix.

  2. Model.earth fork of useeio-widgets - package.lock uses modelearth/useeio.js (line 2)
    and lots of updates to package versions for the State v1.0 issue.

After pulling the forks of useeio.js and usseeio-widgets above, run these steps for build:

npm ci
npm audit fix - fixes 5 vulnerabilities (4 low, 1 high)
npm run build

To view prior issue, append beta=true. The state v1.0 models are then loaded.

https://model.earth/io/charts/inflow-outflow/#set=prosperity&indicators=VADD,JOBS&state=NY&beta=true

https://model.earth/localsite/info/#state=NY&beta=true

To work on a fix for the Tensor build error, you can fix the useeio.js tslib build error
by changing line 37 to "useeio": "github:modelearth/useeio.js"

Then follow steps for new 50 state models (at bottom):
model.earth/useeio.js/footprint

Possible fix:
Model.earth fork of useeio-widgets

Related notes on the tslib and tensor fixes - in modelearth/io repo for React widgets.

Run the useeio-widgets build with these steps:
model.earth/io/charts/react

@ModelEarth ModelEarth changed the title State v1.0 models not compatible with widgets State v1.0 models - updates to build for React widgets Oct 26, 2024
@ModelEarth ModelEarth changed the title State v1.0 models - updates to build for React widgets State v1.0 models - fixed build for React widgets Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant