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

Inconsistent Export Paths for Cat and normal Functions in @bdelab/jscat #22

Open
SamSoran opened this issue Nov 25, 2023 · 0 comments
Open

Comments

@SamSoran
Copy link

I've run into an issue while working with the @bdelab/jscat package.
I'm having trouble importing the Cat class and the normal function using the standard import syntax.

I expected this import statement to work seamlessly:
import { Cat, normal } from '@bdelab/jscat';

I got this error message:

Module '"@bdelab/jscat"' has no exported member 'normal'.

I tried a more direct approach to importing, it worked

import { normal } from '@bdelab/jscat/lib/index';
import { Cat } from '@bdelab/jscat/src/index';

I think the normal function isn't being correctly re-exported in the package's main entry file.

What I Expected
Ideally, I want to import both Cat and normal directly from the main package export in a straightforward manner, like this:

import { Cat, normal } from '@bdelab/jscat';

Suggested Solution
Would it be possible to adjust the exports in the main entry file of the package? Ensuring that both Cat and normal are accessible from there would streamline the process and align with common import practices.

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

No branches or pull requests

1 participant