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(wizard): builtin enable setup fails on new installs #200

Merged
merged 1 commit into from Apr 24, 2023

Conversation

lihbr
Copy link
Member

@lihbr lihbr commented Apr 24, 2023

Running nuxi devtools enable on a new install with nuxt@^3.4.0 makes uses of global markDisable function, which tries to read devtoolsGlobal.projects from ~/.nuxtrc. This fails when the devtoolsGlobal object does not exist, yielding
cannot read property of undefined (reading 'projects') error.

This commit updates the markDisable function to safely access RC file properties.

Running `nuxi devtools enable` on a new install with `nuxt@^3.4.0` makes
uses of global `markDisable` function, which tries to read
`devtoolsGlobal.projects` from `~/.nuxtrc`. This fails when the
`devtoolsGlobal` object does not exist, yielding
`cannot read property of undefined (reading 'projects')` error.

This commit updates the `markDisable` function to safely access RC file
properties.
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