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

Issue with subpath globs? #79

Open
Twipped opened this issue Jan 16, 2022 · 2 comments
Open

Issue with subpath globs? #79

Twipped opened this issue Jan 16, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Twipped
Copy link

Twipped commented Jan 16, 2022

Running ls-exports against my react-utils package, it's telling me it can't resolve any of the subpath exports I've defined.

Example: https://github.com/Twipped/react-utils/blob/1d81497bd08b9b7450ac66880f6c3f2e58b8b6a3/package.json#L50

!! Errors:
┌─────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────┬───────────────────────────────────────────────────┐
│ “./hooks/*”: ./src/hooks/*.js does not appear to exist! │ “./quick/*”: ./src/quick/*.js does not appear to exist! │ “./ui/*”: ./src/ui/*.js does not appear to exist! │
└─────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────┴───────────────────────────────────────────────────┘

Am I defining these wrong, or is this a bug?

@ljharb
Copy link
Owner

ljharb commented Jan 17, 2022

It's not a bug exactly, but indeed that feature of "exports" isn't yet supported here.

@ljharb ljharb added enhancement New feature or request help wanted Extra attention is needed labels Jan 17, 2022
@ljharb
Copy link
Owner

ljharb commented Feb 24, 2024

Separately, looking at your package.json, your package is broken - it's referencing index.js but that file doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants