-
Notifications
You must be signed in to change notification settings - Fork 24
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
Can't import oas from npm #35
Comments
Hey, @JasonWoof, I won't able to reproduce the issue. Do you have a repo that makes the issue reproducible? |
|
Hey @JasonWoof , that's because the package is only compiled to commonJs modules at the moment. Sorry for the confusion. |
Any news? |
@mahnunchik Here's what I've learned since making this bug report: From es6 modules, you can import common-js modules, you just can't import their inner symbols directly, ie you can do something like this: import koaOas3 from 'koa-oas3'; // import the whole module
const oas = koaOas3.oas; // extract the part you want (I didn't test the above, sorry if I made a typo or got any of the names wrong) |
Sorry if this is just a typo or something, I'm tired.
I have this in my package.json: "koa-oas3": "latest", and package-lock.json says it's got version "0.18.0".
The text was updated successfully, but these errors were encountered: