Closed RaduIm closed 4 months ago
Are you using es modules or commonjs? Would you mind sharing your tsconfig.json
?
Here is my tsconfig.json. Thanks for looking into this!
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
were you able to resolve this? i'm struggling with a similar issue
useUIState
is a Client Component API, which means that you have to use it in a Client Component (with "use client"
directive on top):
"use client"
import { useUIState } from "ai/rsc"
Let me know if this solves your issue!
useUIState
is a Client Component API, which means that you have to use it in a Client Component (with"use client"
directive on top):"use client" import { useUIState } from "ai/rsc"
Let me know if this solves your issue!
Yes, this was it! Thanks a lot!
Description
When I try to run build, I get:
Because of the warning, my deployment to Vercel fails.
Code example
Additional context