-
Notifications
You must be signed in to change notification settings - Fork 74
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
Cannot find module with @types import #248
Comments
This is not a tsify problem. That package has no available
|
@cartant Sorry, that's a handwritten typo - It should be If you could re-open the issue for time being; would be much appreciated. |
You should first verify that the import works with a plain vanilla I.e. make sure that this compiles using import { BdApi } from 'bandagedbd__bdapi'
console.log(BdApi) |
I'm not going to have time to look into this anytime soon. You can, however, use the logging built into tsify to see if you can figure out why that particular package is problematic. See https://github.com/TypeStrong/tsify/blob/master/CONTRIBUTING.md#debugging |
|
I am unable to import a module from a TypeScript @types package.
In my main file I have:
This compiles correctly when I run
tsc
but not withnode build.js
.My tsconfig looks like this:
And my build.js file:
And my .babelrc
And the output when running
node build.js
I can
import * as React from 'react'
from@types/react
, but notimport { BdApi } from 'bandagedbd__bdapi'
.The text was updated successfully, but these errors were encountered: