-
Notifications
You must be signed in to change notification settings - Fork 69
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
ReferenceError: Stocks is not defined #14
Comments
This is how I got stocks.js to work on my setup using VueJS.
Where here I export the fetchData function and can pass it a symbol to then have it return the data. However, I don't necessarily like having to use commonjs require statements as it throws this warning on webpack, Is there a way to not use the commonjs require with stocks.js and instead use ES6 import, but what would we be importing since So I think me and @ilkertuna are looking for the correct way to use stocksjs with ES6 imports as the examples look more focused on just |
Actually, it looks like PR #6 might solve this issue whenever that gets merged However, until that gets resolved, what I've done, is placed the Maybe this will help someone with a similar issue regarding using stocks.js in webpack dependent projects. |
please add this to the ReadMe file it took me 30 minutes to figure out you have to do require('stocks.js') not require('stocks') |
I am confused. I use stocks.js like
Also, I installed stocks.js with npm.
However, I got an error "ReferenceError: Stocks is not defined"
Is there any suggestion?
Thanks in advance.
The text was updated successfully, but these errors were encountered: