PipedreamHQ / PipedreamHQ/pipedream

[BUG] importing Nhost Javascript Client breaks Node.js code steps

Open
#4,321 11 comments 0 reactions 0 assignees View on GitHub
bug tracked internally triaged
Dominant language
JavaScript
Stars
11.7k
Forks
5.8k
Avg merge
3d 10h
Merged PRs (30d)
102

Description

**Describe the bug**
When attempting to import the `NhostClient` from NPM, the Pipedream code step breaks with a message:

`Code Error could not compute configurable props`

**To Reproduce**
Steps to reproduce the behavior:
1. Create a new Node.js code step
2. Attempt to import an version of the NHostClient
3. Test and observe error

```javascript
import { NhostClient } from '@nhost/nhost-js'

// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})
```

**Expected behavior**
I expect to be able to import the Nhost Client.

**Screenshots**
CleanShot 2022-09-23 at 09 56 14@2x

**Additional context**
Reported from community here:

https://pipedream.com/community/t/error-code-error-could-not-compute-configurable-props/3299

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.