Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to import - twind@1.0.5 #471

Closed
KyleJune opened this issue Dec 25, 2022 · 0 comments
Closed

Failed to import - twind@1.0.5 #471

KyleJune opened this issue Dec 25, 2022 · 0 comments
Labels
deno Not working in Deno

Comments

@KyleJune
Copy link

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/twind@1.0.5?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/core@1.1.1?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.

@KyleJune KyleJune added the deno Not working in Deno label Dec 25, 2022
@ije ije closed this as completed in c7171af Dec 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deno Not working in Deno
Projects
None yet
Development

No branches or pull requests

1 participant