Plasmic typescript compatibility issue.

hi there! We’re using Plasmic for a web3 application and a core library we use requires typescript >=5.0.4. When updating, I’m getting Plasmic errors on the page build.

What version of Typescript does Plasmic support?

Hi @chatty_eel! What errors are you getting?

@hypercerts-org/frontend:build: Error occurred prerendering page "/app/zuzalu/blog". Read more: <https://nextjs.org/docs/messages/prerender-error>
@hypercerts-org/frontend:build: Error: `useConfig` must be used within `WagmiConfig`.

...

@hypercerts-org/frontend:build: > Build error occurred
@hypercerts-org/frontend:build: Error: Export encountered errors on following paths:
@hypercerts-org/frontend:build:         /[[...catchall]]: /
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/browse
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/create
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/dashboard
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/ftc
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/ftc/billboard
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/ftc/confirm
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/ftc/faq
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/gallery
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/gallery-all
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/gallery-climate
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/gallery-eth-infra
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/gallery-oss
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/impactgpt
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/view
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/billboard
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/blog
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/buy
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/confirm
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/dashboard
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/faq
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/test-page
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/view
@hypercerts-org/frontend:build:         /[[...catchall]]: /app/zuzalu/view-old
@hypercerts-org/frontend:build:         /[[...catchall]]: /privacy
@hypercerts-org/frontend:build:         /[[...catchall]]: /terms
@hypercerts-org/frontend:build:         /[[...catchall]]: /test-page
@hypercerts-org/frontend:build:         /plasmic-host

Hmmmmm, is it possible that this error is caused by something else? Plasmic does support TypeScript 5 out of box - for example, if you set up a Next.js project using create-plasmic-app it will use the latest TypeScript (5.1.6) and I think the error you are seeing (@hypercerts-org/frontend:build: Error: useConfigmust be used withinWagmiConfig.) is not related to Plasmic, is it?

Possibly, yeah. Was just checking out a few options and couldn’t find anything in the docs on which version is supported.