Skip to content

Failed to import - [email protected] #471

@KyleJune

Description

@KyleJune

Failing module

This module is currently an alias for @twind/core. If you look at the index file in the source directory, you'll see all it does is the following:

export * from '@twind/core';

If I try importing twind, twind.tx is undefined even though the types declaration expects it to be tx from @twind/core. If you log what twind is, it shows as being a Module and there appear to be no keys on it.

import * as twind from "https://esm.sh/[email protected]?target=deno&pin=v99";
console.log(typeof twind.tx)

If I change to import what it's an alias for, that works correctly, tx is a function like you would expect it to be.

import * as twind from "https://esm.sh/@twind/[email protected]?target=deno&pin=v99";
console.log(typeof twind.tx)

Additional info

  • esm.sh version: 99
  • Deno version: 1.29.1

Since I have a workaround of importing @twind/core directly, this isn't high priority for me. But I thought it would be good to report since it seems to show the re-export isn't working correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    denoNot working in Deno

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions