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

[Chore] Dependencies upgrade #50

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

[Chore] Dependencies upgrade #50

wants to merge 5 commits into from

Conversation

JayPanoz
Copy link
Contributor

This PR aims to upgrade dependencies to their latest version (NextJS 15, React 19, etc.). It also leverages this opportunity to remove unused dependencies.

Note CF deploy is still impacted by the issue listed in #34 so Vercel is being kept to get around this issue.

The project should be buildable and deployable (deps-upgrade.playground-7xz.pages.dev), and should not create new issues.

I’ll request a review though, given there are major version bumps, in the hope we can confirm everything is fine for every consumer of the project.

@JayPanoz JayPanoz requested a review from chocolatkey December 18, 2024 11:13
.nvmrc Outdated
@@ -0,0 +1 @@
v20
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JayPanoz Why are we using an older Node version? v22 is the active LTS, v23 is the current latest.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I'm afraid that was me focusing on Cloudflare's default 18.7.x version and forgetting about the LTS release in October.

Will switch to lts/* and see if that works for it so that we don't have too keep the nvmrc updated.

Copy link
Contributor Author

@JayPanoz JayPanoz Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And Cloudflare doesn’t like it:

08:12:33.063	Installing nodejs lts/*
08:12:33.128	mkdir: cannot create directory '/opt/buildhome/.asdf/installs/nodejs/lts/*': No such file or directory
08:12:33.605	Trying to update node-build... ok
08:12:33.638	node-build: definition not found: 20
08:12:33.645	Error: Exit with error code: 1
08:12:33.645	    at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
08:12:33.646	    at Object.onceWrapper (node:events:652:26)
08:12:33.646	    at ChildProcess.emit (node:events:537:28)
08:12:33.646	    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
08:12:33.656	Failed: build command exited with code: 1
08:12:34.347	Failed: error occurred while running build command

Note: It seems to resolve to 22.8 when setting v22

Copy link

cloudflare-workers-and-pages bot commented Dec 19, 2024

Deploying playground with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1eabf42
Status: ✅  Deploy successful!
Preview URL: https://3aaa2501.playground-7xz.pages.dev
Branch Preview URL: https://deps-upgrade.playground-7xz.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

2 participants