We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 681378a commit 94fc4efCopy full SHA for 94fc4ef
1 file changed
packages/devtools/src/module-main.ts
@@ -35,8 +35,8 @@ export async function enableModule(options: ModuleOptions, nuxt: Nuxt) {
35
}
36
37
// Determine if user aware devtools, by checking the presentation in the config
38
- const enabledExplicitly = (nuxt.options.devtools === true)
39
- || (nuxt.options.devtools && nuxt.options.devtools.enabled)
+ const enabledExplicitly = (nuxt.options.devtools === true as unknown)
+ || (nuxt.options.devtools && (nuxt.options.devtools as unknown as ModuleOptions).enabled)
40
|| !!nuxt.options.modules.find(m => m === '@nuxt/devtools' || m === '@nuxt/devtools-edge' || m === '@nuxt/devtools-nightly')
41
42
await nuxt.callHook('devtools:before')
0 commit comments