Generated types don't match generated routes when using Vue #702
Unanswered
pindab0ter
asked this question in
Q&A
Replies: 1 comment
-
Can you share some more complete code examples so I can debug this?
I'm not sure that's what it means—it seems like an issue with your TypeScript setup or with the generated Are you using Ziggy's NPM package? If not, did you add the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ziggy version
1.8.1
Laravel version
10.39.0
Description
When you run
php artisan ziggy:generate --types
, two files are generated:resources/js/ziggy.js
, which exports theZiggy
object.resources/js/ziggy.d.ts
, which defines theRouteList
interface in theziggy-js
namespace.Now in my
app.ts
file on the line where I import Ziggy (import { Ziggy } from './ziggy';
) it saysTS2305: Module './ziggy' has no exported member Ziggy
. This is—for as far as I understand—becauseziggy.d.ts
's definitions differ from the contents ofziggy.js
.Ziggy call and context
Ziggy configuration
Route definition
Beta Was this translation helpful? Give feedback.
All reactions