Giter Site home page Giter Site logo

notesgpt's Introduction

NotesGPT – AI-powered voice note taking in seconds.

Generate action items from your notes in seconds. Powered by Convex, Together.ai, and Whisper.

Tech Stack · Deploy Your Own · Future Tasks


Tech Stack

Deploy Your Own

You can deploy this template by setting up the following services and adding their environment variables:

  1. Run npm install to install dependencies.
  2. Run npm run dev. It will prompt you to log into Convex and create a project.
  3. It will then ask you to supply the CLERK_ISSUER_URL. To do this:
    1. Make a Clerk account.
    2. Copy both the CLERK_SECRET_KEY and NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY API keys into .env.local.
    3. Do steps 1-3 here and copy the Issuer URL. It should look something like https://some-animal-123.clerk.accounts.dev.
    4. Add CLERK_ISSUER_URL to your Convex Environment Variables (deep link also available in your terminal). Paste the Issuer URL as the value and click "Save".
  4. Now your frontend and backend should be running and you should be able to log in but not record.
  5. Make a Together account to get your API key.
  6. Make a Replicate account to get your API key.
  7. Save your environment variables in Convex as REPLICATE_API_KEY and TOGETHER_API_KEY.

Future tasks

  • Keep recording for future playback and display it on the page somewhere
  • Animate the purple microphone to be in sync with your voice
  • Store completed action items for the future instead of fully deleting them
  • Make text/images in the landing page smaller to account for multiple screen sizes.
  • Make the search experience a little smoother overall by searching automatically on entering text
  • Be able to have this as a PWA if there's an easy step to do that
  • Prompt engineer the summary a little more to be more useful than what's currently displaying
  • Add a Notion integration to be able to get the transcript + summary + action items on there
  • UI updates to make it look a little nicer based on Youssef's redesign
  • Be able to edit action items after the fact and set a due date for them
  • Account for layout shift on the dashboard page when refreshing – show a loading state on content?
  • Make action items animate out + make checkbox rounded + add a little check icon on hover
  • Migrate to incredibly fast whisper

notesgpt's People

Contributors

fjun99 avatar ianmacartney avatar jamwt avatar nutlope avatar xixixao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notesgpt's Issues

time counting error

Great project!

There is a time counting error.

When it is 00:59, the next second will show as 2:00.

When it is 01:59, the next second will show as 4:00.

We may choose to use totalSeconds instead of minutes and seconds.

const [totalSeconds, setTotalSeconds] = useState(0);
useEffect(() => {
  let interval: NodeJS.Timeout;

  if (isRunning) {
    interval = setInterval(() => {
      setTotalSeconds((prevTotalSeconds) => prevTotalSeconds + 1);
    }, 1000);
  }

  return () => {
    if (interval) {
      clearInterval(interval);
    }
  };
}, [isRunning]);
function formatTime(time: number): string {
  return time < 10 ? `0${time}` : `${time}`;
}

...
{formatTime(Math.floor(totalSeconds / 60))}:{formatTime(totalSeconds % 60)}

A pull request submitted.

remotes/origin/revert-1-preloading

image

(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT % export REPLICATE_API_TOKEN=r8_UOlfy9Bx0DGkO2xEznykOIGudYzKbbW254bMk
(base) zhangyixin@zhangyixin notesGPT % python /Users/zhangyixin/Desktop/re.test.whisper.py
{'detected_language': 'english', 'segments': [{'avg_logprob': -0.060722851171726135, 'compression_ratio': 1.412280701754386, 'end': 18.6, 'id': 0, 'no_speech_prob': 0.05907342955470085, 'seek': 0, 'start': 0, 'temperature': 0, 'text': " the little tales they tell are false the door was barred locked and bolted as well ripe pears are fit for a queen's table a big wet stain was on the round carpet", 'tokens': [50365, 264, 707, 27254, 436, 980, 366, 7908, 264, 2853, 390, 2159, 986, 9376, 293, 13436, 292, 382, 731, 31421, 520, 685, 366, 3318, 337, 257, 12206, 311, 3199, 257, 955, 6630, 16441, 390, 322, 264, 3098, 18119, 51295]}, {'avg_logprob': -0.1184891973223005, 'compression_ratio': 1.696969696969697, 'end': 31.840000000000003, 'id': 1, 'no_speech_prob': 0.000253104604780674, 'seek': 1860, 'start': 18.6, 'temperature': 0, 'text': ' the kite dipped and swayed but stayed aloft the pleasant hours fly by much too soon the room was crowded with a mild wab', 'tokens': [50365, 264, 38867, 45162, 293, 27555, 292, 457, 9181, 419, 6750, 264, 16232, 2496, 3603, 538, 709, 886, 2321, 264, 1808, 390, 21634, 365, 257, 15154, 261, 455, 51027]}, {'avg_logprob': -0.1184891973223005, 'compression_ratio': 1.696969696969697, 'end': 45.2, 'id': 2, 'no_speech_prob': 0.000253104604780674, 'seek': 1860, 'start': 31.840000000000003, 'temperature': 0, 'text': ' the room was crowded with a wild mob this strong arm shall shield your honour she blushed when he gave her a white orchid', 'tokens': [51027, 264, 1808, 390, 21634, 365, 257, 4868, 4298, 341, 2068, 3726, 4393, 10257, 428, 20631, 750, 25218, 292, 562, 415, 2729, 720, 257, 2418, 34850, 327, 51695]}, {'avg_logprob': -0.1184891973223005, 'compression_ratio': 1.696969696969697, 'end': 48.6, 'id': 3, 'no_speech_prob': 0.000253104604780674, 'seek': 1860, 'start': 45.2, 'temperature': 0, 'text': ' the beetle droned in the hot june sun', 'tokens': [51695, 264, 49735, 1224, 19009, 294, 264, 2368, 361, 2613, 3295, 51865]}, {'avg_logprob': -0.30115177081181455, 'compression_ratio': 0.8409090909090909, 'end': 52.38, 'id': 4, 'no_speech_prob': 0.292143315076828, 'seek': 4860, 'start': 48.6, 'temperature': 0.4, 'text': ' the beetle droned in the hot june sun', 'tokens': [50365, 264, 49735, 1224, 19009, 294, 264, 2368, 361, 2613, 3295, 50554]}], 'transcription': " the little tales they tell are false the door was barred locked and bolted as well ripe pears are fit for a queen's table a big wet stain was on the round carpet the kite dipped and swayed but stayed aloft the pleasant hours fly by much too soon the room was crowded with a mild wab the room was crowded with a wild mob this strong arm shall shield your honour she blushed when he gave her a white orchid the beetle droned in the hot june sun the beetle droned in the hot june sun", 'translation': None}
(base) zhangyixin@zhangyixin notesGPT % r8_II6ADFlkwSS2mBqUNvEwh8a4FodXDUt4WKwPp
zsh: command not found: r8_II6ADFlkwSS2mBqUNvEwh8a4FodXDUt4WKwPp
(base) zhangyixin@zhangyixin notesGPT % r8_UOlfy9Bx0DGkO2xEznykOIGudYzKbbW254bMk
zsh: command not found: r8_UOlfy9Bx0DGkO2xEznykOIGudYzKbbW254bMk
(base) zhangyixin@zhangyixin notesGPT % npx convex deploy
You're currently developing against your dev deployment

next-bandicoot-953 (set in CONVEX_DEPLOYMENT)

Your prod deployment tough-vulture-160 serves traffic at:

NEXT_PUBLIC_CONVEX_URL=https://tough-vulture-160.convex.cloud

Make sure that your published client is configured with this URL (for instructions see https://docs.convex.dev/hosting)

? Do you want to push your code to your prod deployment tough-vulture-160 now? Yes
✔ Schema validation complete.
✔ Added table indexes:
[+] actionItems.by_noteId ["noteId","_creationTime"]
[+] actionItems.by_userId ["userId","_creationTime"]
[+] notes.by_userId ["userId","_creationTime"]
[+] notes.by_embedding {"dimensions":768,"vectorField":"embedding","filterFields":["userId"]}
Analyzing and deploying source code...
✖ Go to https://dashboard.convex.dev/t/zyxcambridge/mqj20240217/next-bandicoot-953/settings/environment-variables?var=CLERK_ISSUER_URL to setup your environment variable.
Hit an error while pushing:
Environment variable CLERK_ISSUER_URL is used in auth config file but its value was not set
at (../convex/auth.config.js:5:21)

Unexpected Error: Error: Client network socket disconnected before secure TLS connection was established
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Client network socket disconnected before secure TLS connection was established
at TLSSocket.onConnectEnd (node:_tls_wrap:1727:19)
at TLSSocket.emit (node:events:531:35)
at TLSSocket.emit (node:domain:488:12)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
(base) zhangyixin@zhangyixin notesGPT % git pull
Already up to date.
(base) zhangyixin@zhangyixin notesGPT % git log
commit 72bbbc9 (HEAD -> main, origin/main, origin/HEAD)
Author: Hassan El Mghari [email protected]
Date: Fri Feb 16 15:04:47 2024 -0800

edited README

commit 50ab8a7
Merge: 527911b 671aff3
Author: Ian Macartney [email protected]
Date: Fri Feb 16 12:13:57 2024 -0800

Merge pull request #15 from xixixao/fix-optimize-auth

Fix optimize auth changes

commit 671aff3
Author: Michal Srb [email protected]
Date: Thu Feb 15 22:43:18 2024 -0800

Fix optimize auth changes

commit 527911b
Author: Hassan El Mghari [email protected]
Date: Thu Feb 15 16:44:37 2024 -0800

regenerated package-lock.json

commit d6a013b
Merge: b5668d8 2f53f0e
Author: Hassan El Mghari [email protected]
Date: Thu Feb 15 19:38:21 2024 -0500

Merge pull request #12 from xixixao/optimize-auth

Optimize auth

commit 2f53f0e
Author: Michal Srb [email protected]
Date: Thu Feb 15 15:56:10 2024 -0800

Simplify auth and preloading by returning null when not authed

commit 66d8608
Author: Michal Srb [email protected]
Date: Thu Feb 15 15:31:57 2024 -0800

Fix next/image props

commit b5668d8
Author: Hassan El Mghari [email protected]
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT % npm run dev

[email protected] predev
convex dev --until-success

✔ 09:34:29 Convex functions ready! (4.8s)

[email protected] dev
npm-run-all --parallel dev:backend dev:frontend

[email protected] dev:frontend
next dev

[email protected] dev:backend
convex dev

⚠ Port 3000 is in use, trying 3001 instead.
▲ Next.js 14.0.4

✓ Ready in 1683ms
✔ 09:34:36 Convex functions ready! (4.42s)
✓ Compiled /middleware in 203ms (283 modules)
✓ Compiled /favicon.ico in 187ms (44 modules)
○ Compiling / ...
✓ Compiled / in 2.2s (1316 modules)
⚠ The "images.domains" configuration is deprecated. Please use "images.remotePatterns" configuration instead.
✓ Compiled in 248ms (513 modules)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
✓ Compiled /dashboard in 466ms (1363 modules)
^C

(base) zhangyixin@zhangyixin notesGPT % ^C
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT % git branch -a

  • main
    remotes/origin/HEAD -> origin/main
    remotes/origin/fix-ssr-pr
    remotes/origin/main
    remotes/origin/revert-1-preloading
    (base) zhangyixin@zhangyixin notesGPT % git checkout revert-1-preloading origin/revert-1-preloading
    error: pathspec 'revert-1-preloading' did not match any file(s) known to git
    error: pathspec 'origin/revert-1-preloading' did not match any file(s) known to git
    (base) zhangyixin@zhangyixin notesGPT % git branch -a
  • main
    remotes/origin/HEAD -> origin/main
    remotes/origin/fix-ssr-pr
    remotes/origin/main
    remotes/origin/revert-1-preloading
    (base) zhangyixin@zhangyixin notesGPT % git checkout origin/revert-1-preloading remotes/origin/revert-1-preloading
    error: pathspec 'remotes/origin/revert-1-preloading' did not match any file(s) known to git
    (base) zhangyixin@zhangyixin notesGPT % git fetch origin

(base) zhangyixin@zhangyixin notesGPT % git checkout origin/revert-1-preloading

error: Your local changes to the following files would be overwritten by checkout:
app/auth.ts
app/dashboard/page.tsx
Please commit your changes or stash them before you switch branches.
Aborting
(base) zhangyixin@zhangyixin notesGPT % git checkout origin/revert-1-preloading

(base) zhangyixin@zhangyixin notesGPT % git checkout origin/revert-1-preloading

Note: switching to 'origin/revert-1-preloading'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 701c81c Revert "Several improvements."
(base) zhangyixin@zhangyixin notesGPT % git branch -a

  • (HEAD detached at origin/revert-1-preloading)
    main
    remotes/origin/HEAD -> origin/main
    remotes/origin/fix-ssr-pr
    remotes/origin/main
    remotes/origin/revert-1-preloading
    (base) zhangyixin@zhangyixin notesGPT % npm run dev

[email protected] dev
npm-run-all --parallel dev:server dev:client

[email protected] dev:server
convex dev

[email protected] dev:client
next dev

⚠ Port 3000 is in use, trying 3001 instead.
▲ Next.js 14.0.4

✓ Ready in 1684ms
⠧ Checking for index or schema changes...
⠏ Checking for index or schema changes...
✔ Schema validation complete.
✔ Deleted table indexes:
[-] notes.by_embedding {"dimensions":768,"vectorField":"embedding","filterFields":["userId"]}
[-] actionItems.by_userId ["userId","_creationTime"]
[-] notes.by_userId ["userId","_creationTime"]
[-] actionItems.by_noteId ["noteId","_creationTime"]
○ Compiling / ...
Analyzing and deploying source code...
✖ Error: Unable to push deployment config to https://next-bandicoot-953.convex.cloud
400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze openai.js: Uncaught Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
at new OpenAI (../node_modules/openai/src/index.ts:112:188)
at (../convex/openai.ts:11:20)
✓ Compiled / in 2.2s (957 modules)
⚠ The "images.domains" configuration is deprecated. Please use "images.remotePatterns" configuration instead.
✓ Compiled in 223ms (465 modules)
○ Compiling /dashboard ...
✓ Compiled /dashboard in 916ms (1008 modules)
INFO: Clerk: The request to /record is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/record" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/record"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /record is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/record" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/record"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
✓ Compiled /record in 146ms (1016 modules)
INFO: Clerk: The request to /record is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/record" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/record"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
✓ Compiled /favicon.ico in 146ms (544 modules)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
✓ Compiled / in 78ms (560 modules)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
⠋ Preparing Convex functions...

(base) zhangyixin@zhangyixin notesGPT % This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading 'numSubscribers')
at LocalSyncState.removeSubscriber (/Users/zhangyixin/Desktop/notesGPT/node_modules/convex/dist/cli.bundle.cjs:275177:20)
at unsubscribe (/Users/zhangyixin/Desktop/notesGPT/node_modules/convex/dist/cli.bundle.cjs:275033:33)
at unsubscribe (/Users/zhangyixin/Desktop/notesGPT/node_modules/convex/dist/cli.bundle.cjs:276516:31)
at stopWatching (/Users/zhangyixin/Desktop/notesGPT/node_modules/convex/dist/cli.bundle.cjs:276828:5)
⠹ Preparing Convex functions...
⠸ Preparing Convex functions...
⠏ Preparing Convex functions...
npm run devError: read EIO
at TTY.onStreamRead (node:internal/stream_base_commons:217:20) {
errno: -5,
code: 'EIO',
syscall: 'read'

[email protected] dev
npm-run-all --parallel dev:server dev:client

[email protected] dev:client
next dev

[email protected] dev:server
convex dev

⚠ Port 3000 is in use, trying 3001 instead.
▲ Next.js 14.0.4

✓ Ready in 1458ms
⠇ Checking for index or schema changes...
⠦ Backfilling indexes and checking that documents match your schema...
✔ Schema validation complete.
✔ Deleted table indexes:
[-] notes.by_embedding {"dimensions":768,"vectorField":"embedding","filterFields":["userId"]}
[-] notes.by_userId ["userId","_creationTime"]
[-] actionItems.by_noteId ["noteId","_creationTime"]
[-] actionItems.by_userId ["userId","_creationTime"]
✓ Compiled / in 1617ms (957 modules)
Analyzing and deploying source code...
✓ Compiled in 290ms (465 modules)
⚠ The "images.domains" configuration is deprecated. Please use "images.remotePatterns" configuration instead.
✖ Error: Unable to push deployment config to https://next-bandicoot-953.convex.cloud
400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze openai.js: Uncaught Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
at new OpenAI (../node_modules/openai/src/index.ts:112:188)
at (../convex/openai.ts:11:20)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
✓ Compiled /dashboard in 238ms (1008 modules)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /record is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/record" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/record"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /record is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/record" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/record"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
✓ Compiled /record in 119ms (1016 modules)

Application error

Hi, there are some issues, regarding going to a transcript, it gives an application error

Error: Invalid deployment address: Must end with ".convex.cloud". Found "https://dashboard.convex.dev/".

Error: Invalid deployment address: Must end with ".convex.cloud". Found "https://dashboard.convex.dev/".(base) yixin0909zhang@yixin0909s-MacBook-Pro notesGPT % npm install

added 514 packages, and audited 515 packages in 23s

127 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 10.5.0 -> 10.7.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.7.0
npm notice Run npm install -g [email protected] to update!
npm notice
(base) yixin0909zhang@yixin0909s-MacBook-Pro notesGPT % npm run dev

[email protected] predev
convex dev --until-success

Welcome to developing with Convex, let's get you logged in.
? Device name: aaaa
Visit https://auth.convex.dev/activate?user_code=CPWW-BTBC to finish logging in.
You should see the following code which expires in 15 minutes: CPWW-BTBC
? Open the browser? Yes
✔ Saved credentials to ~/.convex/config.json
? What would you like to configure? a new project
? Project name: aaaaa
✔ Created project aaaaa, manage it at https://dashboard.convex.dev/t/zyxcambridge/aaaaa
Your account now has 1 project remaining.
not overwriting README.md
not overwriting tsconfig.json
✔ Provisioned a dev deployment and saved its:
name as CONVEX_DEPLOYMENT to .env.local
URL as NEXT_PUBLIC_CONVEX_URL to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or [email protected]

✔ Schema validation complete.
✔ Added table indexes:
[+] actionItems.by_noteId ["noteId","_creationTime"]
[+] actionItems.by_userId ["userId","_creationTime"]
[+] notes.by_userId ["userId","_creationTime"]
[+] notes.by_embedding {"dimensions":768,"vectorField":"embedding","filterFields":["userId"]}
Analyzing and deploying source code...
✖ Go to https://dashboard.convex.dev/t/zyxcambridge/aaaaa/dutiful-weasel-444/settings/environment-variables?var=CLERK_ISSUER_URL to setup your environment variable.
Hit an error while pushing:
Environment variable CLERK_ISSUER_URL is used in auth config file but its value was not set
at (../convex/auth.config.js:5:21)

✔ Schema validation complete.
Analyzing and deploying source code...
✔ 10:50:07 Convex functions ready! (5.61s)

[email protected] dev
npm-run-all --parallel dev:backend dev:frontend

[email protected] dev:backend
convex dev

[email protected] dev:frontend
next dev

▲ Next.js 14.0.4

Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

⠼ Preparing Convex functions...
✔ 10:50:14 Convex functions ready! (4.38s)
○ Compiling /middleware ...
✓ Compiled /middleware in 845ms (283 modules)
⨯ node_modules/@clerk/backend/dist/esm/index.js (697:10) @ Error
⨯ Missing Clerk Secret Key or API Key. Go to https://dashboard.clerk.com and get your key for your instance.
null
✓ Compiled /error in 443ms (188 modules)
○ Compiling /not-found ...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
⚠ Fast Refresh had to perform a full reload due to a runtime error.
⨯ node_modules/@clerk/backend/dist/esm/index.js (697:10) @ Error
⨯ Missing Clerk Secret Key or API Key. Go to https://dashboard.clerk.com and get your key for your instance.
null
✓ Compiled /not-found in 2.2s (1075 modules)
⨯ node_modules/@clerk/shared/dist/chunk-5DRMPUGE.mjs (175:12) @ Object.throwMissingPublishableKeyError
⨯ Internal error: Error: @clerk/nextjs: Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.
at Object.throwMissingPublishableKeyError (./node_modules/@clerk/shared/dist/chunk-5DRMPUGE.mjs:196:19)
at ClerkProviderBase (./node_modules/@clerk/clerk-react/dist/esm/contexts/ClerkProvider.js:29:62)
at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:41727)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at a
(/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:50165)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:38901
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:39374)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at a_ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:50165)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:38901
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:39374)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
null
⨯ node_modules/@clerk/shared/dist/chunk-5DRMPUGE.mjs (175:12) @ Object.throwMissingPublishableKeyError
⨯ Internal error: Error: @clerk/nextjs: Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.
at Object.throwMissingPublishableKeyError (./node_modules/@clerk/shared/dist/chunk-5DRMPUGE.mjs:196:19)
at ClerkProviderBase (./node_modules/@clerk/clerk-react/dist/esm/contexts/ClerkProvider.js:29:62)
at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:41727)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at a_ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:50165)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:38901
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:39374)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at a_ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:50165)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:38901
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:39374)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
null
⚠ Fast Refresh had to perform a full reload due to a runtime error.
⨯ node_modules/@clerk/backend/dist/esm/index.js (697:10) @ Error
⨯ Missing Clerk Secret Key or API Key. Go to https://dashboard.clerk.com and get your key for your instance.
null
⨯ node_modules/@clerk/backend/dist/esm/index.js (697:10) @ Error
⨯ Missing Clerk Secret Key or API Key. Go to https://dashboard.clerk.com and get your key for your instance.
null
⨯ node_modules/@clerk/shared/dist/chunk-5DRMPUGE.mjs (175:12) @ Object.throwMissingPublishableKeyError
⨯ Internal error: Error: @clerk/nextjs: Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.
at Object.throwMissingPublishableKeyError (./node_modules/@clerk/shared/dist/chunk-5DRMPUGE.mjs:196:19)
at ClerkProviderBase (./node_modules/@clerk/clerk-react/dist/esm/contexts/ClerkProvider.js:29:62)
at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:41727)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at a_ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:50165)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:38901
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:39374)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
at a_ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:50165)
at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:38901
at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:39374)
at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
null
[webpack.cache.PackFileCacheStrategy] Serializing big strings (101kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
✓ Compiled /favicon.ico in 107ms (573 modules)
Reload env: .env.local
⚠ Fast Refresh had to perform a full reload due to a runtime error.
⨯ node_modules/@clerk/backend/dist/esm/index.js (697:10) @ Error
⨯ Missing Clerk Secret Key or API Key. Go to https://dashboard.clerk.com and get your key for your instance.
null
✓ Compiled in 1498ms (842 modules)
○ Compiling /not-found ...
✓ Compiled /not-found in 975ms (1059 modules)
✓ Compiled /favicon.ico in 83ms (573 modules)
○ Compiling / ...
✓ Compiled / in 946ms (1462 modules)
⚠ The "images.domains" configuration is deprecated. Please use "images.remotePatterns" configuration instead.
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
✓ Compiled /dashboard in 425ms (1580 modules)
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
null
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
digest: "2533320378"
null
[webpack.cache.PackFileCacheStrategy] Serializing big strings (101kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
Reload env: .env.local
⚠ Fast Refresh had to perform a full reload due to a runtime error.
✓ Compiled in 536ms (1831 modules)
✓ Compiled in 277ms (1831 modules)
✓ Compiled in 128ms (1831 modules)
Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  4. You might have mismatching versions of React and the renderer (such as React DOM)
  5. You might be breaking the Rules of Hooks
  6. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    TypeError: Cannot read properties of null (reading 'useContext')
    at t.useContext (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:163120)
    at usePathname (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/navigation.js:122:34)
    at ErrorBoundary (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/error-boundary.js:129:50)
    at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46613)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55195
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55862
    at a$ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55870)
    at Timeout._onTimeout (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:4037)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
    ⨯ TypeError: Cannot read properties of null (reading 'useContext')
    at UserNav (./components/ui/UserNav.tsx:29:80)
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  7. You might have mismatching versions of React and the renderer (such as React DOM)
  8. You might be breaking the Rules of Hooks
  9. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  10. You might have mismatching versions of React and the renderer (such as React DOM)
  11. You might be breaking the Rules of Hooks
  12. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    TypeError: Cannot read properties of null (reading 'useContext')
    at t.useContext (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:163120)
    at usePathname (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/navigation.js:122:34)
    at ErrorBoundary (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/error-boundary.js:129:50)
    at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46613)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55195
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55862
    at a$ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55870)
    at Timeout._onTimeout (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:4037)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
    ⨯ TypeError: Cannot read properties of null (reading 'useContext')
    at t.useContext (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:163120)
    at usePathname (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/navigation.js:122:34)
    at ErrorBoundary (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/error-boundary.js:129:50)
    at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46613)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55195
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55862
    at a$ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55870)
    at Timeout._onTimeout (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:4037)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
    page: '/dashboard'
    }
    ⨯ TypeError: Cannot read properties of null (reading 'useContext')
    at UserNav (./components/ui/UserNav.tsx:29:80)
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    digest: "2533320378"
    null
    ⨯ TypeError: Cannot read properties of null (reading 'useContext')
    at t.useContext (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:163120)
    at usePathname (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/navigation.js:122:34)
    at ErrorBoundary (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/error-boundary.js:129:50)
    at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46613)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55195
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55862
    at a$ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55870)
    at Timeout._onTimeout (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:4037)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
    page: '/dashboard'
    }
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    digest: "2533320378"
    null
    ✓ Compiled in 271ms (1831 modules)
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    digest: "2533320378"
    null
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  13. You might have mismatching versions of React and the renderer (such as React DOM)
  14. You might be breaking the Rules of Hooks
  15. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  16. You might have mismatching versions of React and the renderer (such as React DOM)
  17. You might be breaking the Rules of Hooks
  18. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    TypeError: Cannot read properties of null (reading 'useContext')
    at t.useContext (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:163120)
    at usePathname (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/navigation.js:122:34)
    at ErrorBoundary (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/error-boundary.js:129:50)
    at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46613)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55195
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55862
    at a$ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55870)
    at Timeout._onTimeout (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:4037)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
    ⨯ TypeError: Cannot read properties of null (reading 'useContext')
    at UserNav (./components/ui/UserNav.tsx:29:80)
    ⨯ TypeError: Cannot read properties of null (reading 'useContext')
    at t.useContext (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:163120)
    at usePathname (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/navigation.js:122:34)
    at ErrorBoundary (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/error-boundary.js:129:50)
    at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46613)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55195
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55862
    at a$ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55870)
    at Timeout._onTimeout (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:4037)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
    page: '/dashboard'
    }
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    digest: "2533320378"
    null
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  19. You might have mismatching versions of React and the renderer (such as React DOM)
  20. You might be breaking the Rules of Hooks
  21. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    TypeError: Cannot read properties of null (reading 'useContext')
    at t.useContext (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:163120)
    at usePathname (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/navigation.js:122:34)
    at ErrorBoundary (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/error-boundary.js:129:50)
    at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46613)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55195
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55862
    at a$ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55870)
    at Timeout._onTimeout (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:4037)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
    ⨯ TypeError: Cannot read properties of null (reading 'useContext')
    at t.useContext (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:163120)
    at usePathname (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/navigation.js:122:34)
    at ErrorBoundary (webpack-internal:///(ssr)/./node_modules/next/dist/client/components/error-boundary.js:129:50)
    at ai (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:6505)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:11284
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:43088)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46613)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at ag (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:7923)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13014
    at ab (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:13038)
    at e (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:46298)
    at aS (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:48276)
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55195
    at /Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55862
    at a$ (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:55870)
    at Timeout._onTimeout (/Users/yixin0909zhang/Desktop/notesGPT/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:4037)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
    page: '/dashboard'
    }
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    digest: "2533320378"
    null
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  22. You might have mismatching versions of React and the renderer (such as React DOM)
  23. You might be breaking the Rules of Hooks
  24. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    ⨯ TypeError: Cannot read properties of null (reading 'useContext')
    at UserNav (./components/ui/UserNav.tsx:29:80)
    ✓ Compiled /favicon.ico in 335ms (928 modules)
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⚠ Fast Refresh had to perform a full reload due to a runtime error.
    ✓ Compiled /not-found in 232ms (1580 modules)
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    digest: "2533320378"
    null
    Reload env: .env.local
    ✓ Compiled in 154ms (1863 modules)
    ✓ Compiled in 152ms (1863 modules)
    Reload env: .env.local
    ⚠ Fast Refresh had to perform a full reload due to a runtime error.
    ✓ Compiled in 741ms (1863 modules)
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    Reload env: .env.local
    ⚠ Fast Refresh had to perform a full reload due to a runtime error.
    ✓ Compiled in 498ms (1831 modules)
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    digest: "2533320378"
    null
    ✓ Compiled /favicon.ico in 76ms (928 modules)
    ✓ Compiled /dashboard/action-items in 451ms (1555 modules)
    ⚠ Fast Refresh had to perform a full reload due to a runtime error.
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async Page (./app/dashboard/action-items/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    null
    ⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
    ⨯ Error: Not Found
    at async getAuthToken (./app/auth.ts:8:12)
    at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
    digest: "2533320378"
    null
    ✓ Compiled /favicon.ico in 86ms (933 modules)

bug

image
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT % npm install
(##################) ⠴ reify:convex: http fetch GET 200 https://registry.npmjs.org/convex/-/convex-1.9.0.tgz 39708ms (cache miss)
(##################) ⠴ reify:convex: http fetch GET 200 https://registry.npmjs.org/convex/-/convex-1.9.0.tgz 39708ms (cache miss)
(##################) ⠴ reify:convex: http fetch GET 200 https://registry.npmjs.org/convex/-/convex-1.9.0.tgz 39708ms (cache miss)

added 514 packages, and audited 515 packages in 3m

127 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT % npm run dev

[email protected] predev
convex dev --until-success

Welcome to developing with Convex, let's get you logged in.
? Device name: 张益新’s MacBook Pro
Visit https://auth.convex.dev/activate?user_code=HLKX-DQTR to finish logging in.
You should see the following code which expires in 15 minutes: HLKX-DQTR
? Open the browser? Yes
✔ Saved credentials to ~/.convex/config.json
? Project name: notesGPT
✔ Created project notesgpt-a228a, manage it at https://dashboard.convex.dev/t/zyxcambridge/notesgpt-a228a
not overwriting README.md
not overwriting tsconfig.json
✔ Provisioned a dev deployment and saved its:
name as CONVEX_DEPLOYMENT to .env.local
URL as NEXT_PUBLIC_CONVEX_URL to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or [email protected]

✔ Schema validation complete.
✔ Added table indexes:
[+] actionItems.by_noteId ["noteId","_creationTime"]
[+] actionItems.by_userId ["userId","_creationTime"]
[+] notes.by_userId ["userId","_creationTime"]
[+] notes.by_embedding {"dimensions":768,"vectorField":"embedding","filterFields":["userId"]}
Analyzing and deploying source code...
✖ Go to https://dashboard.convex.dev/t/zyxcambridge/notesgpt-a228a/modest-ostrich-109/settings/environment-variables?var=CLERK_ISSUER_URL to setup your environment variable.
Hit an error while pushing:
Environment variable CLERK_ISSUER_URL is used in auth config file but its value was not set
at (../convex/auth.config.js:5:21)

✔ Schema validation complete.
Analyzing and deploying source code...
✖ Go to https://dashboard.convex.dev/t/zyxcambridge/notesgpt-a228a/modest-ostrich-109/settings/environment-variables?var=CLERK_ISSUER_URL to setup your environment variable.
Hit an error while pushing:
Environment variable CLERK_ISSUER_URL is used in auth config file but its value was not set
at (../convex/auth.config.js:5:21)

⠋ Preparing Convex functions...
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading 'numSubscribers')
at LocalSyncState.removeSubscriber (/Users/zhangyixin/Desktop/notesGPT/node_modules/convex/dist/cli.bundle.cjs:275177:20)
at unsubscribe (/Users/zhangyixin/Desktop/notesGPT/node_modules/convex/dist/cli.bundle.cjs:275033:33)
at unsubscribe (/Users/zhangyixin/Desktop/notesGPT/node_modules/convex/dist/cli.bundle.cjs:276516:31)
at stopWatching (/Users/zhangyixin/Desktop/notesGPT/node_modules/convex/dist/cli.bundle.cjs:276828:5)
⠹ Preparing Convex functions...
^C
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT %
(base) zhangyixin@zhangyixin notesGPT % npm run dev

[email protected] predev
convex dev --until-success

✔ Schema validation complete.
Analyzing and deploying source code...
✖ Go to https://dashboard.convex.dev/t/zyxcambridge/notesgpt-a228a/modest-ostrich-109/settings/environment-variables?var=CLERK_ISSUER_URL to setup your environment variable.
Hit an error while pushing:
Environment variable CLERK_ISSUER_URL is used in auth config file but its value was not set
at (../convex/auth.config.js:5:21)

✔ Schema validation complete.
Analyzing and deploying source code...
✔ 22:23:27 Convex functions ready! (6.84s)

[email protected] dev
npm-run-all --parallel dev:backend dev:frontend

[email protected] dev:frontend
next dev

[email protected] dev:backend
convex dev

⚠ Port 3000 is in use, trying 3001 instead.
▲ Next.js 14.0.4

⠙ Checking for index or schema changes...
✔ 22:23:36 Convex functions ready! (5.78s)
○ Compiling /middleware ...
✓ Compiled /middleware in 904ms (283 modules)
[webpack.cache.PackFileCacheStrategy] Serializing big strings (101kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
✓ Compiled /favicon.ico in 127ms (44 modules)
○ Compiling / ...
✓ Compiled / in 2.2s (990 modules)
⚠ The "images.domains" configuration is deprecated. Please use "images.remotePatterns" configuration instead.
✓ Compiled in 270ms (467 modules)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
INFO: Clerk: The request to /dashboard is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:

  1. To make the route accessible to both signed in and signed out users, add "/dashboard" to the publicRoutes array passed to authMiddleware
  2. To prevent Clerk authentication from running at all, pass ignoredRoutes: ["/((?!api|trpc))(_next.*|.+\.[\w]+$)", "/dashboard"] to authMiddleware
  3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutes

For additional information about middleware, please visit https://clerk.com/docs/nextjs/middleware
(This log only appears in development mode, or if debug: true is passed to authMiddleware)
○ Compiling /dashboard ...
✓ Compiled /dashboard in 992ms (1253 modules)
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
null
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
digest: "2533320378"
null
✓ Compiled in 122ms (507 modules)
⚠ Fast Refresh had to perform a full reload due to a runtime error.
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
null
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
digest: "2533320378"
null
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
null
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
digest: "2533320378"
null
⨯ node_modules/@clerk/backend/dist/esm/index.js (1330:18) @ SessionAPI.eval [as request]
⨯ Error: Not Found
at async getAuthToken (./app/auth.ts:8:12)
at async ServerDashboardHomePage (./app/dashboard/page.tsx:17:19)
null

Browser Extension

I think as a productivity boosting app, it would be convenient to have this as an extension in the browser in order to help users quickly access their list.

Very laggy in local host and enable to run

Hello, I find the idea intriguing and I'm interested in contributing to some features.

However, I have followed the setups for Deployting and followed them all but I found website very laggy and unable to even recorded a voice note so could

MY PC :

i9900K
32 GB RAM

chrome_NgMQDFxhO6.mp4

I would love if could clarify on what environments to deploy website on so we can test freely on some features

Add: Archive Completed Action Items

I checked off an action item to test the app's functionality. It disappeared from the action item list. There is no record of the completed action item.

Suggestion: Add an archive of completed action items.

Edit: I noticed that this is already planned. mb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.