supabase-community / nextjs-openai-doc-search

Template for building your own custom ChatGPT style doc search powered by Next.js, OpenAI, and Supabase.
https://supabase.com/blog/chatgpt-supabase-docs
Apache License 2.0
1.58k stars 280 forks source link

fix: fix typescript version #16

Closed sd0xdev closed 1 year ago

sd0xdev commented 1 year ago

What kind of change does this PR introduce?

If I encounter the following issues through npm i I hope to correct the TypeScript version to provide a better developer experience.

nextjs-openai-doc-search   main  npm i        
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: class-variance-authority@0.4.0
npm ERR! Found: typescript@5.0.2
npm ERR! node_modules/typescript
npm ERR!   typescript@"5.0.2" from the root project
npm ERR!   peerOptional typescript@">=3.3.1" from eslint-config-next@13.2.4
npm ERR!   node_modules/eslint-config-next
npm ERR!     eslint-config-next@"13.2.4" from the root project
npm ERR!   1 more (tsutils)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@">= 4.5.5 < 5" from class-variance-authority@0.4.0
npm ERR! node_modules/class-variance-authority
npm ERR!   class-variance-authority@"^0.4.0" from the root project

What is the current behavior?

-    "typescript": "5.0.2",

What is the new behavior?

+    "typescript": "^4.9.5",

Feel free to include screenshots if it includes visual changes.

Additional context

After the update, my installation went very smoothly.

CleanShot 2023-04-29 at 14 13 03@2x

Add any other context or screenshots.