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 - @use-gesture/react #483

Closed
paulshen opened this issue Jan 3, 2023 · 4 comments
Closed

Failed to import - @use-gesture/react #483

paulshen opened this issue Jan 3, 2023 · 4 comments
Labels
browser Not working in Browser

Comments

@paulshen
Copy link

paulshen commented Jan 3, 2023

Failing module

import { useDrag } from 'https://esm.sh/@use-gesture/react'

Error message

After onload I got this: I get a 500 response from a dependent package @use-gesture/core/types

https://esm.sh/v102/@use-gesture/core@10.2.23/es2022/types.js

/* esm.sh - error */
throw new Error("[esm.sh] " + "parseCJSModuleExports: Package path ./types/dist/use-gesture-core-types.esm is not exported from package /tmp/esm-build-39bc78b9fffc290bc5014872971fa00181218847-176c8add/node_modules/@use-gesture/core (see exports field in /tmp/esm-build-39bc78b9fffc290bc5014872971fa00181218847-176c8add/node_modules/@use-gesture/core/package.json)");
export default null;

Looks like the types package only exports TypeScript types

Additional info

  • esm.sh version: v102
  • Browser version: Arc / Chromium Engine Version 108.0.5359.125
@paulshen paulshen added the browser Not working in Browser label Jan 3, 2023
@ije
Copy link
Member

ije commented Jan 4, 2023

thanks, i will look into it

@paulshen
Copy link
Author

I tried looking into this but am having trouble figuring it out. My hunch is that it's because this is an empty file https://unpkg.com/browse/@use-gesture/core@10.2.23/types/dist/use-gesture-core-types.esm.js

@ije
Copy link
Member

ije commented Jan 28, 2023

will release v105 soon that should fix this

@paulshen
Copy link
Author

Thank you @ije!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Not working in Browser
Projects
None yet
Development

No branches or pull requests

2 participants