Hi team, out of curiosity i deployed a terriamap in github.io
i'm sharing some findings
- on node 20, with npm build, i get the errors below, changing to yarn gulp does work fine
- i was not able to set the baseurl (github.io typically runs in a subfolder), so i used sed to update index.html
The code for this is at https://github.com/pvgenuchten/terria/blob/pvgenuchten/.github/workflows/pages.yml.
The deployed instance at https://pvgenuchten.github.io/terria.
npm error While resolving: terriajs-map@0.4.5 npm error Found: prettier@2.8.8 npm error node_modules/prettier npm error dev prettier@"2.8.8" from the root project npm error npm error Could not resolve dependency: npm error peer prettier@"^3.0.0" from pretty-quick@4.2.2 npm error node_modules/pretty-quick npm error dev pretty-quick@"^4.0.0" from the root project
npm error While resolving: terriajs@8.11.3 npm error Found: react@18.3.1 npm error node_modules/react npm error react@"^18.3.1" from the root project npm error npm error Could not resolve dependency: npm error peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-anything-sortable@1.7.4 npm error node_modules/react-anything-sortable npm error react-anything-sortable@"^1.5.2" from the root project
Hi team, out of curiosity i deployed a terriamap in github.io
i'm sharing some findings
The code for this is at https://github.com/pvgenuchten/terria/blob/pvgenuchten/.github/workflows/pages.yml.
The deployed instance at https://pvgenuchten.github.io/terria.