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

missing type definition for qs #789

Open
fxnm opened this issue Nov 13, 2024 · 0 comments
Open

missing type definition for qs #789

fxnm opened this issue Nov 13, 2024 · 0 comments
Assignees

Comments

@fxnm
Copy link

fxnm commented Nov 13, 2024

Ziggy version

v2.4.0

Laravel version

11.31.0

Description

Problem

When trying to build a react + typescript frontend with ziggy, the build fails, with the following error message:

Error: vendor/tightenco/ziggy/src/js/index.d.ts(1,26): error TS7016: Could not find a declaration file for module 'qs'. '/node_modules/qs/lib/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/qs` if it exists or add a new declaration (.d.ts) file containing `declare module 'qs';`
Error: Process completed with exit code 2.

Expectation

The library ships with the type definitions for qs

Ziggy call and context

-

Ziggy configuration

-

Route definition

-
@bakerkretzmar bakerkretzmar self-assigned this Nov 13, 2024
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