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

Upgrade node.js/AngularJS #445

Open
oscgonfer opened this issue Jul 29, 2023 · 1 comment
Open

Upgrade node.js/AngularJS #445

oscgonfer opened this issue Jul 29, 2023 · 1 comment

Comments

@oscgonfer
Copy link
Contributor

oscgonfer commented Jul 29, 2023

Most of the time we are running into issues when maintaining the web. Node v9.8.0 is very old and bower is starting to complain already:

https://github.com/fablabbcn/smartcitizen-web/actions/runs/5654861339/job/15318782559#step:4:152

This happens, apparently due to old node versions: bower/bower#2623

Would suggest to upgrade to a newer LTS version. In the short term, we can't deploy because certificates don't seem to work on bower, for which a solution is to add the environment variable:

NODE_OPTIONS=--use-openssl-ca

As per: bower/bower#2608 (comment) and already tested here: #446

@oscgonfer
Copy link
Contributor Author

Update

  • Github actions for building with setup-node the site are seemingly not affected as long as we keep using a version that is available in https://nodejs.org/dist/
  • Bower repos will eventually be replaced and probably we need to move away from bower completely to yarn or vite as explained here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
  • AngularJS has no support as of January 2022. There is no good solution to this as it was replaced by Angular (in Typescript), and totally rewritten. We should consider if we stay and stretch the situation, or if we move away to a supported framework (a lot to discuss there...)

To summarise: for now, it seems we can get away without more actions but this change will need to happen at some point because the stack seems to be getting old (although c'mon...).

Let's keep this issue open so that we can discuss upgrades for the many items that now are deprecated and see how we move forward.

@oscgonfer oscgonfer changed the title Upgrade node.js Upgrade node.js/angularJS Aug 20, 2023
@oscgonfer oscgonfer changed the title Upgrade node.js/angularJS Upgrade node.js/AngularJS Aug 20, 2023
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