Skip to content

TypeScript: Module ... has no exported member Ziggy #828

@Livijn

Description

@Livijn

Ziggy version

2.5.2

Laravel version

12

Description

I generate my routes and types. When I import the routes config in typescript the TS service throws an error:

Module "@/lib/ziggy" has no exported member Ziggy

It makes sense because the ziggy.d.ts doesn't export anything except export {}; (to make it a module).

Ziggy call and context

Not relevant

Ziggy configuration

Not relevant

Route definition

Not relevant

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions