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

fix(nuxt): Don't override Nuxt options if undefined #15795

Merged
merged 1 commit into from
Mar 24, 2025
Merged

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Mar 24, 2025

Sometimes, the build fails because of this error: ERROR Cannot set property options of #<Object> which has only a getter

As nuxt.options are always defined anyway (it's also not optional in the Nuxt type), we can safely delete the assertion to {} which causes the error to dissapear.

@s1gr1d s1gr1d changed the title fix(nuxt): Don't override Nuxt options fix(nuxt): Don't override Nuxt options if undefined Mar 24, 2025
@s1gr1d s1gr1d requested review from Lms24 and chargome March 24, 2025 12:10
@s1gr1d s1gr1d merged commit fa9376c into develop Mar 24, 2025
37 checks passed
@s1gr1d s1gr1d deleted the sig/nuxt-options branch March 24, 2025 12:19
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.

None yet

2 participants