Open Nizarius opened 4 months ago
@Nizarius Thanks for the issue. Foton wasn't tested within node environment yet, but the idea is that it should work as expected in both Node and Browser. Only createWalletClientUI
is designed to be browser-only
Try run in node version 22+
I receive this stack trace when trying to invoke createPublicClient in nodejs environment:
Environment: "@fotonjs/core": "^0.0.7", "@ton/core": "^0.56.3",
TS config (tested in different environments, didn't help): { "compilerOptions": { "target": "ES2020", "outDir": "dist", "module": "commonjs", "declaration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true } }
My current ideation process is that this library is designed to be used in browser environment with nodejs polyfills and isn't designed to be used on the backend. Is that correct assumption?