ai icon indicating copy to clipboard operation
ai copied to clipboard

Rename rsc/rsc-types.ts to rsc/index.ts to fix issues importing ai/rsc

Open briann opened this issue 1 year ago • 1 comments

Potential fix for https://github.com/vercel/ai/issues/1028.

I verified this locally (yarn add ai@/path/to/this/branch) and I'm able to import from ai/rsc. However I'm not sure if this breaks something else that was intended by naming the type export as rsc-types.ts (if so, feel free to decline this PR).

briann avatar Mar 02 '24 08:03 briann

It's weird and I don't understand why renaming the file fixes it...

shuding avatar Mar 03 '24 19:03 shuding