Error: Code Error could not compute configurable props

We are trying to use the nhost-js package (nhost/packages/nhost-js at main · nhost/nhost · GitHub). I’ve used tons of packages in the past, but for some reason with this one, we keep getting an error:

Code Error could not compute configurable props

What is this? Never seen this before. Our code is below. No different than how we always do this.

// To use any npm package, just import it
import { NhostClient } from '@nhost/nhost-js'
export default defineComponent({
  async run({ steps, $ }) {
    
const nhost = new NhostClient({
  subdomain: '<Your Nhost project subdomain>',
  region: '<Your Nhost project region>'
})
    //
  },
})

@dylburger Has anyone from Pipedream been able to look into this? This is literally the only package, I can’t get to work on Pipedream and I just can’t figure out for the life of me. You can sign up for a free account at Nhost. Would appreciate any help. Thanks!

Hi @osseonews

I was able to reproduce the bug, simply importing that module seems to interfere with the Node.js code step initialization somehow.

Here’s a bug report you can comment and subscribe to:

I tried older versions of the client, but the same error was happening. There may be a dependency on that client that’s not compatible with Pipedream.

I also encourage you to report this issue with the NHost as well.

@osseonews Do you know if the package relies on any headless browser like Puppeteer? What functionality does the client provide?

Thanks for confirming! I will look at the package to see what it relies on.