Skip to content

Build on build server without @mf-types in repository #4337

Open
@lestersconyers

Description

@lestersconyers

Hello. I have a project that has a shell app (host app) and 5 remote apps using MF 2.0. Currently when we run pnpm run dev everything works as expected including the type checking. We currently have @mf-types in our gitignore file so mf-types directory is not in the repository.

When we attempt to build the host app on remote build server (Azure DevOps) the builds fail because mf-types does not exist so the types do not exist.

error TS2307: Cannot find module 'remoteApp1/components/myComponent' or its corresponding type declarations.

How do I go about building with typescript on a build server?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions