You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed when using the new bundler option under moduleResolution in TypeScript 5, that swiper's type declarations are not compatible:
Could not find a declaration file for module 'swiper'. '/node_modules/swiper/swiper.esm.js' implicitly has an 'any' type.
There are types at '/node_modules/swiper/swiper.d.ts', but this result could not be resolved when respecting package.json "exports". The 'swiper' library may need to update its package.json or typings.
Suggested solution
Correctly link the declaration files, as seen in a similar pull request here. Updating the package.json will make this package compatible with the new moduleResolution option.
Clear and concise description of the problem
I noticed when using the new
bundler
option undermoduleResolution
in TypeScript 5, that swiper's type declarations are not compatible:Suggested solution
Correctly link the declaration files, as seen in a similar pull request here. Updating the
package.json
will make this package compatible with the newmoduleResolution
option.Alternative
No response
Additional context
No response
Validations
Would you like to open a PR for this feature?
The text was updated successfully, but these errors were encountered: