roam-research-private-api icon indicating copy to clipboard operation
roam-research-private-api copied to clipboard

Constructor 'options' loader error

Open dylsteck opened this issue 4 years ago • 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

dylsteck avatar Feb 04 '21 17:02 dylsteck

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.

dimfeld avatar Feb 17 '21 07:02 dimfeld