Issue with HttpClient in Effect TypeScript Library
Hi everyone, I'm very new to effect and trying to build a simple CLI tool that uses HttpClient to fetch data from the Notion API. Any call to the client (client.post(...)) systematically fails with:
Here is my current package.json. I believe the issue is here, but I can't figure out the right combination to satisfy pnpm.
TypeError: Cannot read properties of undefined (reading 'pipe')
at <anonymous> (.../node_modules/.pnpm/@effect+platform-node@0.98.0_...@effect+platform@0.92.0.../node_modules/@effect/platform-node/src/internal/httpClientUndici.ts:47:37)Here is my current package.json. I believe the issue is here, but I can't figure out the right combination to satisfy pnpm.
{
"name": "@template/cli",
"version": "0.0.0",
"type": "module",
"packageManager": "pnpm@10.14.0",
"license": "MIT",
"description": "A basic Effect CLI application",
"scripts": {
"dev": "tsx src/bin.ts"
},
"dependencies": {
"dotenv": "^17.2.3"
},
"devDependencies": {
"@effect/cli": "^0.71.0",
"@effect/platform": "^0.92.0",
"@effect/platform-node": "^0.98.0",
"effect": "^3.18.0",
"@types/node": "^20.14.12",
"tsx": "^4.16.2",
"typescript": "^5.5.4"
}
}