artpi/roam-research-private-api

Constructor 'options' loader error

dylsteck opened this issue · 1 comments

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

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.