You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: