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

Linting is failing #138

Closed
Thiesvdz opened this issue Jan 14, 2025 · 0 comments
Closed

Linting is failing #138

Thiesvdz opened this issue Jan 14, 2025 · 0 comments

Comments

@Thiesvdz
Copy link

Thiesvdz commented Jan 14, 2025

When I run the linter in my project, it fails on these ts errors:

node_modules/@birdwingo/react-native-instagram-stories/src/components/AvatarList/index.tsx:4:38 - error TS2307: Cannot find module '~/core/dto/componentsDTO' or its corresponding type declarations.

4 import { StoryAvatarListProps } from '~/core/dto/componentsDTO';
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@birdwingo/react-native-instagram-stories/src/components/AvatarList/index.tsx:5:37 - error TS2307: Cannot find module '~/core/dto/instagramStoriesDTO' or its corresponding type declarations.

5 import { InstagramStoryProps } from '~/core/dto/instagramStoriesDTO';
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@birdwingo/react-native-instagram-stories/src/components/Modal/index.tsx:477:19 - error TS2322: Type 'DerivedValue<string>' is not assignable to type 'SharedValue<string | undefined>'.
  Types of property 'set' are incompatible.
    Type '(value: string | ((value: string) => string)) => void' is not assignable to type '(value: string | ((value: string | undefined) => string | undefined) | undefined) => void'.
      Types of parameters 'value' and 'value' are incompatible.
        Type 'string | ((value: string | undefined) => string | undefined) | undefined' is not assignable to type 'string | ((value: string) => string)'.
          Type 'undefined' is not assignable to type 'string | ((value: string) => string)'.

477                   activeUser={userId}
                      ~~~~~~~~~~

  node_modules/@birdwingo/react-native-instagram-stories/src/core/dto/componentsDTO.ts:157:3
    157   activeUser: SharedValue<string | undefined>;
          ~~~~~~~~~~
    The expected type comes from property 'activeUser' which is declared here on type 'IntrinsicAttributes & StoryListProps'

node_modules/@birdwingo/react-native-instagram-stories/src/components/Modal/index.tsx:478:19 - error TS2322: Type 'SharedValue<string>' is not assignable to type 'SharedValue<string | undefined>'.
  Types of property 'set' are incompatible.
    Type '(value: string | ((value: string) => string)) => void' is not assignable to type '(value: string | ((value: string | undefined) => string | undefined) | undefined) => void'.
      Types of parameters 'value' and 'value' are incompatible.
        Type 'string | ((value: string | undefined) => string | undefined) | undefined' is not assignable to type 'string | ((value: string) => string)'.
          Type 'undefined' is not assignable to type 'string | ((value: string) => string)'.

478                   activeStory={currentStory}
                      ~~~~~~~~~~~

  node_modules/@birdwingo/react-native-instagram-stories/src/core/dto/componentsDTO.ts:158:3
    158   activeStory: SharedValue<string | undefined>;
          ~~~~~~~~~~~
    The expected type comes from property 'activeStory' which is declared here on type 'IntrinsicAttributes & StoryListProps'

node_modules/@birdwingo/react-native-instagram-stories/src/core/dto/instagramStoriesDTO.ts:7:32 - error TS2307: Cannot find module '@shopify/flash-list' or its corresponding type declarations.

7 import { FlashListProps } from '@shopify/flash-list';
                                 ~~~~~~~~~~~~~~~~~~~~~


Found 5 errors in 3 files.

Errors  Files
     2  node_modules/@birdwingo/react-native-instagram-stories/src/components/AvatarList/index.tsx:4
     2  node_modules/@birdwingo/react-native-instagram-stories/src/components/Modal/index.tsx:477
     1  node_modules/@birdwingo/react-native-instagram-stories/src/core/dto/instagramStoriesDTO.ts:7

I am on the latest version of this library
"@birdwingo/react-native-instagram-stories": "^1.3.10",

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

1 participant