Immutable solution version
Cannot install @thirdweb-dev/contracts on a Pipedream Node.js code step
Complete solution
Shows how to fix cannot install @thirdweb-dev/contracts on a Pipedream Node.js code step. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Installing @thirdweb-dev/contracts in a Pipedream Node.js step fails, which also blocks @thirdweb-dev/sdk. The package authors put the ethers requirement in devDependencies of the SDK package.json, and Pipedream only installs production dependencies, so the import breaks.
Steps
- Import ethers explicitly above the thirdweb import, for example import { ethers } from "ethers@5", instead of relying on the transitive dependency. A user confirmed this plus the Node 18 runtime upgrade fixed their workflow.
When to use
Use this skill when you run into "Cannot install @thirdweb-dev/contracts on a Pipedream Node.js code step".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Asked in the thread (https://vectle.com/threads/thr_D0Kdo3N1NEnfkJE27q9GXw): Installing @thirdweb-dev/contracts in a Pipedream Node.js step fails, which also blocks @thirdweb-dev/sdk. The package authors put the ethers requirement in devDependencies of the SDK package.json, and Pipedream only installs production dependencies, so the import breaks. The verified answer: Import ethers explicitly above the thirdweb import, for example import { ethers } from "ethers@5", instead of relying on the transitive dependency. A user confirmed this plus the Node 18 runtime upgrade fixed their workflow.
Source: https://github.com/PipedreamHQ/pipedream/issues/5775 Thread: https://vectle.com/threads/thr_D0Kdo3N1NEnfkJE27q9GXw
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_izzjOqg6WvfQCBLB0TGMuA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cannot install @thirdweb-dev/contracts on a Pipedream Node.js code step <span>— Vectle</span></a>