Skip to content

Conversation

@waitingallday
Copy link
Member

@waitingallday waitingallday commented Dec 8, 2025

Issue: https://digital-vic.atlassian.net/browse/SD-1251

Rework of #1633 to maintain compatibility for nuxt 3 apps (hopefully)

What I did

  • Update nuxt in pnpm catalog (4.2.1)
  • Update formkit to nuxt 4 compatibility (1.6.9)
  • Update vite config to use addVitePlugin for svg
  • Update cypress to 15.7.1 and rework a bunch of tests to pass
  • This version is compatible with a nuxt 3 app and nuxt 3 layers

How to test

Checklist

For all PR's

  • I've added relevant changes to the project Readme if needed
  • I've updated the documentation site as needed
  • I have added tests to cover my changes (if not applicable, please state why in a comment)

For new UI components only

  • I have added a storybook story covering all variants
  • I have checked a11y tab in storybook passes
  • I have added cypress component tests (if the component is interactive)
  • Any events are emitted on the event bus using emitRplEvent

@waitingallday waitingallday self-assigned this Dec 8, 2025
@netlify
Copy link

netlify bot commented Dec 8, 2025

Deploy Preview for ripple-docs canceled.

Name Link
🔨 Latest commit 3fcdcc3
🔍 Latest deploy log https://app.netlify.com/projects/ripple-docs/deploys/69364a2d763ecf0008038854

@cypress
Copy link

cypress bot commented Dec 8, 2025

ripple-framework    Run #3111

Run Properties:  status check passed Passed #3111  •  git commit 3fcdcc336d: feat: :sparkles: minimal upgrade to nuxt 4
Project ripple-framework
Branch Review 2.46.0-alpha.2
Run status status check passed Passed #3111
Run duration 14m 43s
Commit git commit 3fcdcc336d: feat: :sparkles: minimal upgrade to nuxt 4
Committer Jason Smith
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 4
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 281
View all changes introduced in this branch ↗︎

@waitingallday waitingallday changed the base branch from develop to release/2.46.0 December 8, 2025 04:07
@waitingallday waitingallday added this to the 2.46.0 milestone Dec 8, 2025
}

if (process.client) {
if (import.meta.client) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Nuxt 4 is moving to import.meta https://nuxt.com/docs/4.x/api/advanced/import-meta

supportFile: false,
downloadsFolder: './test/downloads',
fixturesFolder: './test/fixtures',
numTestsKeptInMemory: 10,
Copy link
Member Author

Choose a reason for hiding this comment

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

This prevents cypress open from exhausting its memory (defaults to 50 - cypress run always runs as 0)

@@ -0,0 +1,6 @@
/// <reference types="parse-path" />
Copy link
Member Author

Choose a reason for hiding this comment

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

parse-path is used by Lerna - the current version is missing a types def in the package that causes a build failure IonicaBizau/parse-path#49

@waitingallday waitingallday merged commit 3f92780 into release/2.46.0 Dec 11, 2025
29 checks passed
@waitingallday waitingallday deleted the feat/sd-1251-minimal-nuxt4-update branch December 11, 2025 00:09
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

Successfully merging this pull request may close these issues.

3 participants