-
Notifications
You must be signed in to change notification settings - Fork 48
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
Comments
Hello, have you find any solution? |
Did you install brackets-viewer? |
Yes I'm still same... |
What package manager are you using? And how are you importing the viewer? |
Using yarn but I tried on npm too doesn't matter it's giving me to "that error. import BracketsViewer from "brackets-viewer" //giving error
const BracketsViewer = require("brackets-viewer") // giving same error too |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
But I cannot import BracketsViewer, I have tried the following:
and the following as mentioned in #27
I get the following error: TS2307: (TS) Cannot find module 'brackets-viewer' or its corresponding type declarations.
The text was updated successfully, but these errors were encountered: