Skip to content

Cannot find module 'assemblyscript/asc' or its corresponding type declarations. #2241

Closed
@bbrk24

Description

@bbrk24

The website says it's possible to call asc programmatically in JavaScript, and can be imported as follows:

import asc from "assemblyscript/asc";

Source: Programmatic usage

However, trying to do so in TypeScript fails with the error message from the title. There is no @types/assemblyscript package either, at least not that yarn can find.

TypeScript seems to think the module is called assemblyscript/dist/asc, as I can import that with no such error.

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