Skip to content

Typecheck fails in fresh project if typescript.strict = false #260

@alexblunck

Description

@alexblunck

🐛 The bug

I am getting following Error when running npx nuxi typecheck in a fresh project with only @nuxt/scripts installed.

Error only occurs if typescript.strict ist set to false in nuxt.config.ts.

node_modules/@nuxt/scripts/dist/runtime/components/ScriptGoogleMaps.vue:288:7 - error TS2578: Unused '@ts-expect-error' directive.

288       // @ts-expect-error broken
          ~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in node_modules/@nuxt/scripts/dist/runtime/components/ScriptGoogleMaps.vue:288

I've copied most of this issue content from one I've submitted earlier (#111) since they're so similar.

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-qmhrvq

🌈 Expected behavior

npx nuxi typecheck to succeed in a fresh project with only @nuxt/scripts installed where typescript.strict ist set to false in nuxt.config.ts.

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions