Tuleap 16 est là ! Assistez à l'événement virtuel le 17 octobre à 10h30. Inscrivez-vous ici !

    •  
      request #38629 TypeScript warnings during build in @tuleap/plugin-pullrequests-comments
    Infos
    #38629
    Thomas Gorka (tgorka)
    2024-06-24 17:46
    2024-06-24 14:21
    40242
    Details
    TypeScript warnings during build in @tuleap/plugin-pullrequests-comments

    During the build of the @tuleap/plugin-pullrequests-comments lib, some TypeScript warnings are displayed:

    @tuleap/plugin-pullrequest-comments:build: src/comment/edition/EditionForm.ts:58:14 - error TS2742: The inferred type of 'EditionForm' cannot be named without a reference to '@tuleap/commonmark-popover/node_modules/.pnpm/hybrids@9.0.0/node_modules/hybrids'. This is likely not portable. A type annotation is necessary.
    
    58 export const EditionForm = define<InternalEditionForm>({
                    ~~~~~~~~~~~
    
    src/new-comment-form/NewCommentForm.ts:55:14 - error TS2742: The inferred type of 'NewInlineCommentFormComponent' cannot be named without a reference to '@tuleap/commonmark-popover/node_modules/.pnpm/hybrids@9.0.0/node_modules/hybrids'. This is likely not portable. A type annotation is necessary.
    
    55 export const NewInlineCommentFormComponent = define<NewCommentForm>({
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    src/comment/PullRequestComment.ts:165:14 - error TS2742: The inferred type of 'PullRequestCommentComponent' cannot be named without a reference to '@tuleap/commonmark-popover/node_modules/.pnpm/hybrids@9.0.0/node_modules/hybrids'. This is likely not portable. A type annotation is necessary.
    
    165 export const PullRequestCommentComponent = define<PullRequestCommentComponentType>({
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/comment/comment-reply/PullRequestCommentReply.ts:66:14 - error TS2742: The inferred type of 'PullRequestCommentReply' cannot be named without a reference to '@tuleap/commonmark-popover/node_modules/.pnpm/hybrids@9.0.0/node_modules/hybrids'. This is likely not portable. A type annotation is necessary.
    
    66 export const PullRequestCommentReply = define<InternalPullRequestCommentReply>({
                    ~~~~~~~~~~~~~~~~~~~~~~~
    src/description-comment/PullRequestDescriptionComment.ts:78:14 - error TS2742: The inferred type of 'PullRequestCommentDescriptionComponent' cannot be named without a reference to '@tuleap/commonmark-popover/node_modules/.pnpm/hybrids@9.0.0/node_modules/hybrids'. This is likely not portable. A type annotation is necessary.
    
    78 export const PullRequestCommentDescriptionComponent = define<PullRequestDescriptionComment>({
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/skeleton/PullRequestCommentSkeleton.ts:89:14 - error TS2742: The inferred type of 'PullRequestCommentSkeletonComponent' cannot be named without a reference to '@tuleap/commonmark-popover/node_modules/.pnpm/hybrids@9.0.0/node_modules/hybrids'. This is likely not portable. A type annotation is necessary.
    
    89 export const PullRequestCommentSkeletonComponent = define<PullRequestCommentSkeleton>({
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/timeline-event/TimelineEvent.ts:46:14 - error TS2742: The inferred type of 'TimelineEvent' cannot be named without a reference to '@tuleap/commonmark-popover/node_modules/.pnpm/hybrids@9.0.0/node_modules/hybrids'. This is likely not portable. A type annotation is necessary.
    
    46 export const TimelineEvent = define<InternalTimelineEvent>({
    

    These warnings are shown since the step 2 of the migration of Hybrids: 8.2.2 -> 9.0.0 (git #tuleap/stable/3d175db8270a454121d533273f229391c79d9dcb)

    Pull Request
    development
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gorka (tgorka)
    Closed
    2024-06-24
    Attachments
    Empty
    References

    Follow-ups