Skip to content

Incorrectly resolving imports. #917

@maxiy01

Description

@maxiy01

Hello there, I have problems with importing lua libraries.

Here's the situation: I'm using I'm using this template and try to add e.g. lurker to my project. when I write import lurker = require('lurker') in main.ts, everything is fine and it transpiles to local lurker = require('lurker') in lua code, but when I try do do the same thing in file in child directory, e.g. src/some/folder/script.ts, generated lua code will contain local lurker = require('some.folder.lurker') (instead of just 'lurker').

How to solve this problem? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions