Skip to content

nuxt cannot run dev #87

@denlly

Description

@denlly

I follow the installation, https://boilerplates.js.org/docs/nuxt-installation

npm run dev

but, I got

× Client
  Compiled with some errors in 34.46s

× Server
  Compiled with some errors in 32.42s


 ERROR  Failed to compile with 18 errors                        friendly-errors 10:15:58


 ERROR  in C:\demos\Frontend-Boilerplates-nuxt\client\middleware\config.ts

[tsl] ERROR in C:\demos\Frontend-Boilerplates-nuxt\client\middleware\config.ts(24,111)
      TS2322: Type '0' is not assignable to type '{ label: number; sent: () => any; trys: any[]; ops: any[]; }'.
                                                                friendly-errors 10:15:58

 ERROR  in C:\demos\Frontend-Boilerplates-nuxt\client\middleware\interceptors.ts

[tsl] ERROR in C:\demos\Frontend-Boilerplates-nuxt\client\middleware\interceptors.ts(24,111)
      TS2322: Type '0' is not assignable to type '{ label: number; sent: () => any; trys: any[]; ops: any[]; }'.
                                                                friendly-errors 10:15:58

 ERROR  in C:\demos\Frontend-Boilerplates-nuxt\client\services\container.builder.ts

[tsl] ERROR in C:\demos\Frontend-Boilerplates-nuxt\client\services\container.builder.ts(8,51)
      TS2345: Argument of type '() => void' is not assignable to parameter of type 'new (...args: any[]) => {}'.
  Type '() => void' provides no match for the signature 'new (...args: any[]): {}'.

environment:[email protected],[email protected],win10_x64

How to resolve.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions