-
Notifications
You must be signed in to change notification settings - Fork 58
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
doesn't import as described #143
Comments
Hey @CFautt, thanks for reporting. Yes, it looks like when Can you just let us know where you saw When #126 lands I'll make sure to add examples in the README for both and make sure that both forms work well (i.e. no need to ref Thanks! |
Thanks for responding so quickly @gadicc!
and need to amend the call of the function to Thank you for all your work on this project! |
Hey @CFautt, thanks for reporting back, and for your kind words. That is indeed surprising. What is your setup? Bundlers / transpilers / etc? I just noticed that in a plain node project, with |
That is exactly my setup, so it seems it will be fixed soon! |
@CFautt, #126 / #144 is merged to the devel branch. Not released yet but in case you're comfortable with running development versions from github, you could check it out. Otherwise you'll see an automated message here once it's released as a package to npm.
|
Hey @CFautt, as above, and now released in v1.11.0. Let us know how you go with that. If you're using |
Actually maybe you can report back before we close this issue. Thanks :) |
@gadicc I can confirm that this is fixed with the latest version. |
Awesome, @PythonCreator27, thanks for confirming! 🙏 |
Bug Report
Describe the bug
importing as described in docs results in the following error:
(node:67008) UnhandledPromiseRejectionWarning: TypeError: yahooFinance.quote is not a function.
Minimal Reproduction
var yahooFinance = require('yahoo-finance2'); yahooFinance.quote('AAPL')
Environment
Browser or Node: node
Node version (if applicable): 14.6.0
Npm version: 6.14.11
Browser verion (if applicable):
Library version (e.g.
1.10.1
):Additional Context
I got it to work with
var yahooFinance = require('yahoo-finance2').default
but it just feels wrong.The text was updated successfully, but these errors were encountered: