Skip to content

fix the call to loadNuxtConfig by passing empty object - #7376

Merged
leoortizz merged 7 commits into
firebase:masterfrom
JamieCurnow:fix/frameworks-backend-nuxt-load-nuxt-config
Jun 27, 2024
Merged

fix the call to loadNuxtConfig by passing empty object#7376
leoortizz merged 7 commits into
firebase:masterfrom
JamieCurnow:fix/frameworks-backend-nuxt-load-nuxt-config

Conversation

@JamieCurnow

Copy link
Copy Markdown
Contributor

Description

Fixes #7375 - a recent update of nuxt has prevented deployments as described in the issue. @nuxt/kit used to just spread the single arg passed into loadNuxtConfig() which would have been a string dir, so this issue hasn't appeared as you can spread a string, even though it would have had no affect on functionality. A recent update actually uses the first arg to this function and expects it to be an object. This PR fixes the type error that was caused by passing a string when an object was expected.

Scenarios Tested

I've done a fresh install of nuxt, a firebase init and a firebase deploy all of which now work with this change.

Sample Commands

@leoortizz leoortizz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks @JamieCurnow!

Comment thread src/frameworks/nuxt/index.ts Outdated
@JamieCurnow
JamieCurnow requested a review from leoortizz June 25, 2024 15:33
@leoortizz
leoortizz requested a review from jamesdaniels June 25, 2024 16:38

@leoortizz leoortizz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Please add changelog then we can merge

@JamieCurnow

Copy link
Copy Markdown
Contributor Author

Changelog added @leoortizz 🙌

@JamieCurnow
JamieCurnow requested a review from leoortizz June 25, 2024 17:04
@leoortizz

Copy link
Copy Markdown
Member

@JamieCurnow looks like prettier is failing for the changelog file, can you make sure to run prettier on it?

@JamieCurnow

Copy link
Copy Markdown
Contributor Author

Sorry about that @leoortizz - all fixed now and master merged back in 👌

@JamieCurnow
JamieCurnow requested a review from leoortizz June 26, 2024 08:38
@leoortizz

Copy link
Copy Markdown
Member

Sorry about that @leoortizz - all fixed now and master merged back in 👌

Thank you 🙏 . We couldn't merge yet and we have a merge conflict now, can you please fix?

@leoortizz
leoortizz enabled auto-merge (squash) June 27, 2024 04:05
auto-merge was automatically disabled June 27, 2024 08:23

Head branch was pushed to by a user without write access

@JamieCurnow

Copy link
Copy Markdown
Contributor Author

@leoortizz I've just fixed the merge conflict with the changelog again 👌

@leoortizz
leoortizz enabled auto-merge (squash) June 27, 2024 16:33
@leoortizz

leoortizz commented Jun 27, 2024

Copy link
Copy Markdown
Member

@jamesdaniels, this PR isn't being merged because the integration tests are being skipped for some reason, even if I manually run them, any clue of what's missing?

@jamesdaniels

Copy link
Copy Markdown
Contributor

@leoortizz since this commit is coming from a fork, you (or I) need to pull down the branch and push it to this repo—I tend to use the github CLI to perform this operation for convenience. No need to create a new PR, the integration tests will run on that branch and report back to this PR

@leoortizz
leoortizz merged commit 5ddb86c into firebase:master Jun 27, 2024
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.

Nuxt3 with Web Frameworks fails to init or deploy - Cannot create property 'overrides' on string

3 participants