Closed jackpmorgan closed 9 months ago
Hello @jackpmorgan, is it possible for you to share your Node.js code step? A screenshot would be a great help!
Hi!
Here is the code attached. Im simply just trying to initialize the SDK.
Would links to my other workspace that is still running this package successfully help?
Thank you for your help!
import { ThirdwebSDK } from "@thirdweb-dev/sdk@2.4.9";
import ethers from "ethers@5.7.2";
export default defineComponent({
async run({ steps, $ }) {
const sdk = new ThirdwebSDK("https://rpc.ankr.com/polygon");
return sdk
}
})
@vunguyenhung Can you help me try to solve this bug for this package?
Without more information, I'm going to close this issue. Feel free to reopen and add more details, if you'd like.
@dylburger hi, I have been waiting for a response from someone on the pipedream team to help me resolve the issue. I have provided everything that was asked. I still would love a some assistance with this issue!
@jackpmorgan Apologies, a Pipedream workflow controls this logic and if we miss these comments, we'll incorrectly close the issue. I've re-opened and pinged @vunguyenhung to see if he can help triage. If there's a larger platform issue, I can help prioritize with the team.
Hello, I apologize for missing the message. I've checked an it seems like this is a problem on the package @thirdweb-dev/contracts-js and @thirdweb-dev/contracts installation step. Here's the error detail
I'll update the description and add this to Pipedream internal backlog
Hi @vunguyenhung & @dylburger,
Thank you so much for your help!
Just wanted to throw this out there as it may help on your end. I have another account that is currently using the 2.4.9 version of this SDK in production and it is working fine.
Here's one of the workflows in this account using the package: https://pipedream.com/@OME/send-token-p_brC8xDW/inspect. I am not game to edit these workflows anymore as it would break my app if they stopped working.
Not sure if this will help identify any changes to the node environments since these workflows were deployed.
Thanks again for your help and let me know if there is anything I can do to assist.
Jack
Thank you @jackpmorgan for the helpful information.
In your working workflow https://pipedream.com/@OME/send-token-p_brC8xDW/inspect, could you access your workflow settings and enable the option to allow Pipedream support to access it. That would be really helpful for @dylburger to check it.
Again, thank you for your information and sorry for the late response 🙏
@vunguyenhung No worries. I have just granted that access. Thanks again for your help!
I've prioritized this with the team @jackpmorgan . We'll look into it as soon as we can, and post updates here.
@dylburger I need help here as well
Thanks for the note @brettbl . This is still on the team's backlog. We're about to release some major features (Git integration, folders, etc.) so we've had to focus on that. We'll let you know as soon as we have updates here.
@jackpmorgan @brettbl it looks like this works in our Node.js v18 runtime now:
import ethers from "ethers";
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
export default defineComponent({
async run({ steps, $ }) {
return
}
})
Could you confirm if it works OK for you?
@dylburger I received this error. It seems like Thirdweb
needs ethers
in order to work, I tried excluding it and got an error saying the library was missing.
Unfortunately the authors of the @thirdweb-dev/sdk
package put the ethers
requirement in the devDependencies
section of the package.json
:
We only install production dependencies, not devDependencies
, which is standard. Could you either raise an issue with that team, or continue importing ethers
above the thirdweb
import?
@dylburger @brettbl
Hey! Yes since you guys updated to node 18 I can install and use Thirdweb perfectly.
Brett your issue is actually regarding Ethers.
Import ethers like this:
import { ethers } from "ethers@5";
For some reason the latest release of ethers is not usable.
Let me know how that goes!
Awesome thanks for the assist @jackpmorgan , I'll close this since it looks like it's working.
When I tried to install the package @thirdweb-dev/contracts, it failed with an error as below
This package is a dependency for @thirdweb-dev/sdk package. So it prevents user from install this package also
Context
Hello,
For the past 6 months, I have been using the “@thirdweb-dev/sdk” package in my Pipedream workflows that use a step.
However, it has suddenly stopped working and now throws the error message “could not compute configurable props” whenever I try to run a node script using it.
The latest version of the package has not worked for some time but I have been able to run it using version 2.4.9 of “@thirdweb-dev/sdk” (@thirdweb-dev/sdk@2.4.9).
I am wondering what has changed within Pipedream that has caused this package to stop working given that it was supported at one point and how I can resolve this issue.
Also a weird side note, I have a paid workspace (@OME) that also uses the Thirdweb package in 15+ workflows (version 2.4.9) and they are working fine.
All the workflows mentioned are HTTPS -> Node.js -> HTTPS.