Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Constructor 'options' loader error #9

Open
dylsteck opened this issue Feb 4, 2021 · 1 comment
Open

Constructor 'options' loader error #9

dylsteck opened this issue Feb 4, 2021 · 1 comment

Comments

@dylsteck
Copy link

dylsteck commented Feb 4, 2021

Hey! I am trying to use this API to run some queries but am having issues initializing the API instance.
Every time I try to run it, I get an issue about needing a webpack loader for the options param -- no idea why it would flag that. Any advice? Do I need to add a JSON loader? Thanks in advance!!

Error log

Code

@dimfeld
Copy link

dimfeld commented Feb 17, 2021

This is a field declaration, not yet fully standardized, so you probably need Babel (through babel-loader) to make it work. You might need to use the plugin https://babeljs.io/docs/en/babel-plugin-proposal-class-properties too, not sure if that's included automatically with Babel right now or not.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants