supermemoryai / supermemory

Build your own second brain with supermemory. It's a ChatGPT for your bookmarks. Import tweets or save websites and content using the chrome extension.
https://supermemory.ai
MIT License
6.22k stars 594 forks source link

Fix Tailwind configuration and use Turbopack #247

Closed leerob closed 3 weeks ago

leerob commented 1 month ago

Update Next.js Configuration and Dependencies

Overview

This pull request introduces several updates to the Next.js application configuration, dependency versions, and TypeScript settings. These changes aim to enhance the application's structure, compatibility with newer libraries, and overall development experience.

Changes

✨ Generated with love by Kaizen ❤️

Original Description
kaizen-bot[bot] commented 1 month ago

Code Review

Attention Required: This PR has potential issues. 🚨

Dependency Updates

Updated Next.js to canary version and React to release candidate Potential Solution: Consider using stable versions of Next.js and React for production environments.

apps/web/package.json | 30 - 35

reason_for_request: Using pre-release versions in production can lead to instability and unexpected behavior.

level: [critical] , severity: [10]

✨ Generated with love by Kaizen ❤️

Useful Commands
Dhravya commented 1 month ago

Just tried to run it locally, not sure why the imports don't resolve anymore 😅

image
 ✓ Compiled / in 31.3s
 ⨯ ./apps/web/app/(landing)/CardPatterns/AnimatedBeamWithOutput.tsx.tsx
Module not found: Can't resolve './AnimatedBeamWithOutput.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./apps/web/app/(landing)/Features.tsx.tsx
Module not found: Can't resolve './Features.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./apps/web/app/(landing)/Hero.tsx.tsx
Module not found: Can't resolve './Hero.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./apps/web/app/(landing)/Navbar.tsx.tsx
Module not found: Can't resolve './Navbar.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./apps/web/app/(landing)/RotatingIcons.tsx.tsx
Module not found: Can't resolve './RotatingIcons.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./apps/web/app/(landing)/Showcase.tsx.tsx
Module not found: Can't resolve './Showcase.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./apps/web/app/global-error.tsx.tsx
Module not found: Can't resolve './global-error.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./apps/web/app/providers.tsx.tsx
Module not found: Can't resolve './providers.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./packages/ui/shadcn/toaster.tsx.tsx
Module not found: Can't resolve './toaster.tsx.tsx'

https://nextjs.org/docs/messages/module-not-found

./packages/ui/lib/utils.ts:2:1
Module not found: Can't resolve 'tailwind-merge'
  1 | import { type ClassValue, clsx } from "clsx";
> 2 | import { twMerge } from "tailwind-merge";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3 |
  4 | export function cn(...inputs: ClassValue[]) {
  5 |   return twMerge(clsx(inputs));

https://nextjs.org/docs/messages/module-not-found

 ○ Compiling /_error ...
 ✓ Compiled /_error in 6.1s
 GET / 500 in 38540ms
RamGoel commented 1 month ago

@Dhravya what's this .tsx.tsx in imports ? (Just curious)

Dhravya commented 1 month ago

@RamGoel I'm not sure either, maybe it's resolving the dependencies differently, out right now but will look into it

CodeTorso commented 1 month ago

would love to see the performace benefits but image

BlankParticle commented 1 month ago

@RamGoel I'm not sure either, maybe it's resolving the dependencies differently, out right now but will look into it

I ran into this issue while trying to implement million lint into our codebase, it doesn't work with turbopack If you want million lint, turbopack is not an option for you

Dhravya commented 1 month ago

update: @aidenybai is helping fix this error