Skip to content

"No exported member" when Importing an exported "import * as" #1386

Closed
@torch2424

Description

@torch2424

I know the title is a bit confusing, but the best way to show off this bug is by just showing the pattern in code 😄

in tests/compiler/reexport.ts we export {} an import * as

https://github.com/torch2424/assemblyscript/blob/export-star-as/tests/compiler/reexport.ts#L28

Then, if we try to import that export in other AS code, it will erorr:

https://github.com/torch2424/assemblyscript/blob/export-star-as/tests/compiler/rereexport.ts#L1

For example:

Screenshot from 2020-07-10 13-07-10

It is worth noting that if we export {exportstar} along with the other exports, the final wasm module will correctly have the right exports. Seems to just not be working between AS files 😄

cc @dcodeIO @MaxGraey 😄

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions