Skip to content

typings/piu/MC.d.ts: TS2661 Cannot export ... Only local declarations can be exported from a module. #1574

@stc1988

Description

@stc1988

Build environment: macOS
Moddable SDK version: 7.2.0

When I build a Piu application implemented in TypeScript, I get the following error.

../../../typings/piu/MC.d.ts:597:5 - error TS2661: Cannot export 'Coordinates'. Only local declarations can be exported from a module.

597     Coordinates,
        ~~~~~~~~~~~

../../../typings/piu/MC.d.ts:598:5 - error TS2661: Cannot export 'Position'. Only local declarations can be exported from a module.

598     Position,
        ~~~~~~~~

../../../typings/piu/MC.d.ts:599:5 - error TS2661: Cannot export 'Size'. Only local declarations can be exported from a module.

599     Size,
        ~~~~

../../../typings/piu/MC.d.ts:600:5 - error TS2661: Cannot export 'Bounds'. Only local declarations can be exported from a module.

600     Bounds,
        ~~~~~~

../../../typings/piu/MC.d.ts:601:5 - error TS2661: Cannot export 'Color'. Only local declarations can be exported from a module.

601     Color,
...

I do not know the background, but it appears that the cause may be that it was split into typings/piu/MC-types.d.ts in a recent update.

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