-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade SvelteKit #57
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
Conversation
SirajChokshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for maintaining this.
The pre-fetching is great, but it seems like the mobile navigation toggle is broken (https://deploy-preview-57--h4iuiuc.netlify.app/)
That's unfortunate, the preview deployments really come in handy. After checking the console, I think some script is erroring out and it's crashing Svelte before it can register the button on:click listeners. Here's a screenshot of the error's location in the script, looks like it might be ackee? Here's a screenshot of a potential root cause (note the You might have a better idea of why this is happening, I'm not entirely sure though. Maybe the Ackee urls aren't in the preview? |
Ackee was me, I'll take a look soon (probably the weekend). |
|
Coming back to this, it might just be better to upgrade SvelteKit to its most recent version since a lot has changed. The SvelteKit docs really only describe its most recent version, so it will be easier to maintain with a newer version in the codebase. I've recently done a SvelteKit upgrade, so I know generally what needs to be changed in the codebase and I could handle it in this PR. Thoughts? |
Sure go for it, sorry I forgot to follow up earlier. Let me know once you've bumped to a more up-to-date version and I'll take a look again. |
261acc3 to
eeba23c
Compare
|
This PR unfortunately became quite large because of the upgrade. Here's a rundown of why I made some changes that increased the files changed by a lot:
Also, SvelteKit now requires node 16 I believe. Netlify might need to upgrade? I've never used it though so I'm not entirely sure if I'm reading the logs right. Lastly, I'm going to make this a draft until I get the contentful API keys and can test locally. |
|
Thanks for all the work on this @AndrewLester 🚀 I think @arpanlaha has access to the Netlify setup, there should be an option to upgrade to Node 16 LTS. |
|
I upgraded Node, here's the deploy preview: https://deploy-preview-57--h4iuiuc.netlify.app/ (doesn't display on CI since I went through the netlify thing itself) |
|
I added the Ackee env vars to the preview Netlify and we still get a network error (Ackee needs to specify a specific domain which we can't do with preview deploys) but IIUC it isn't blocking the onclick handling now. @AndrewLester could you confirm? |
arpanlaha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this, some feedback that is either relatively small or non-blocking:
arpanlaha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet
|
One last change I made was to separate the layout file into two, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work 💯


Status:
🚀 Ready
Description
Upgrades SvelteKit version to fix prefetching.
Fixes: #55
Fixes: #56
Screenshots
Ignore the errors, I can't connect to the API.
Screen.Recording.2022-03-17.at.12.41.48.PM.mov