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

New layer fails typecheck #554

Open
marr opened this issue Oct 27, 2023 · 1 comment
Open

New layer fails typecheck #554

marr opened this issue Oct 27, 2023 · 1 comment

Comments

@marr
Copy link

marr commented Oct 27, 2023

I created a new layer project using npx nuxi init -t layer and when I run npx nuxi typecheck on the fresh project, there is a failure. You can see the output here:

.playground/nuxt.config.ts:2:3 - error TS2322: Type 'string' is not assignable to type '(string | [(string | undefined)?, ({ [x: string]: any; meta?: { [x: string]: any; name?: string | undefined; } | undefined; giget?: { provider?: string | undefined; force?: boolean | undefined; ... 7 more ...; auth?: string | undefined; } | undefined; overrides?: { ...; } | undefined; } | undefined)?] | undefined)[]'.

2   extends: '..'
    ~~~~~~~

  node_modules/@nuxt/schema/dist/index.d.ts:1135:2
    1135  extends: (string|string|[string, SourceOptions?])[],
          ~~~~~~~
    The expected type comes from property 'extends' which is declared here on type 'InputConfig<NuxtConfig, ConfigLayerMeta>'


Found 1 error in .playground/nuxt.config.ts:2

I'm not a TypeScript expert so I'm not sure how this would be addressed. Maybe just changing to:

extends: ['..']

would fix

@shinGangan
Copy link

Hi @marr , is this issue already resolved?
(From the PR, it seems to have been resolved...)

I'm trying to use nuxi init -t layer, so if it's not resolved, I'll try to address it in advance.

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

No branches or pull requests

2 participants