alchemyplatform / embedded-accounts-quickstart

An application that demos how to quickly build with Alchemy Embedded Accounts.
Apache License 2.0
27 stars 31 forks source link

Failed to generate static pages in next.js after npm update to v3.12.0 #4

Open ipnq opened 6 months ago

ipnq commented 6 months ago

Clone the repo, npm install, and then npm run build. Works.

clone-install-build

After that, npm update, and then npm run build. Fails.

update-build

ipnq commented 6 months ago

The content of package.json after npm update.

package-json

ipnq commented 6 months ago

ClientOnlyPropertyError: account is only available on the client is probably thrown by getAccount or watchAccount in useAccount.

jrhite commented 5 months ago

I'm facing the same problem: ClientOnlyPropertyError: account is only available on the client. This seems to occur from page.tsx.

It's not clear to me why this is happening yet.

I'm new to nextjs and might be misunderstanding, but both page.tsx and useAccount.ts are tagged with use client so page.tsx shouldn't be getting pre-rendered on the server.

moldy530 commented 5 months ago

this should be fixed now in the latest versions of the SDK. are y'all still running into that?

AungThuSoe24 commented 4 months ago

Withdraw to Trust Wallet