Skip to content

Could not resolve require path with both declare module and require  #1101

@GlassBricks

Description

@GlassBricks

A module declared using declare module and using require function is not resovled by tstl, but Typescript gives no errors.
Resolution still works with requireing "normal" modules (.ts files) or with import syntax, but not both require and declare module together.
@noResolution annotation has no effect.

Example:
https://typescripttolua.github.io/play/#code/CYUwxgNghgTiAEBbA9sArhBAiAZs5W8A3gFAC+JJYyAdgM4Au8ey8AvPHAI5oCWcAClz4sASiA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugscope: transpileAny transpilation not directly related to code transforms

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions