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

Unable to import types #108

Open
NoahSurprenant opened this issue May 11, 2024 · 0 comments
Open

Unable to import types #108

NoahSurprenant opened this issue May 11, 2024 · 0 comments

Comments

@NoahSurprenant
Copy link

In my typescript project I am having issues importing types such as the BracketsViewer. It appears that this was completed according to #27 but I am using version 1.6.2 and I am unable to import the types.

I am not much of a typescript guru but I believe that either the tsconfig.json needs declaration set to true and/or the package.json needs to have the types property set. I am willing to look into this issue and make a fix if problem is not between chair and keyboard.

For more context I am able to import BracketsManager like so:

import { BracketsManager } from 'brackets-manager/dist'

But I cannot import BracketsViewer, I have tried the following:

import { BracketsViewer } from 'brackets-viewer/dist';

and the following as mentioned in #27

import { BracketsViewer } from 'brackets-viewer';

I get the following error: TS2307: (TS) Cannot find module 'brackets-viewer' or its corresponding type declarations.

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