Trouble with correctly import typescript definitions #7170
Unanswered
ryan-adolphson
asked this question in
Q&A
Replies: 2 comments 2 replies
-
try this : import {SwiperOptions} from "swiper/types/swiper-options" |
Beta Was this translation helpful? Give feedback.
1 reply
-
In package.json, if you have "typescript" version < 5, upgrade it to 5+. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently working with Angular 16 (which could be the issue) but I'm not able to import type definitions without getting an error
Module '"swiper/types"' has no exported member 'SwiperOptions'
Here is an example on stackblitz if you check the import for
SwiperOptions
the it isn't happyimport { SwiperOptions } from 'swiper/types';
Example here => https://stackblitz.com/edit/stackblitz-starters-z9ah6k?file=src%2Fapp%2Fapp.component.ts
I figured it was a module resolution issue but have had no luck going down the rabbit hole... I have to be missing something
Beta Was this translation helpful? Give feedback.
All reactions