astro-with-clerk-auth icon indicating copy to clipboard operation
astro-with-clerk-auth copied to clipboard

Could not resolve "clerk:astro"

Open JacobWeinbren opened this issue 9 months ago • 4 comments

Hi -

Using the instructions you laid out on your README, I get this error. Do you know what might be causing it?

Thanks, Jacob

[ERROR] Could not resolve "clerk:astro"

   node_modules/astro-clerk-auth/dist/chunk-DUP22WC7.js:26:38:
     26 │ import { getClerkAuthInitState } from "clerk:astro";
        ╵                                       ~~~~~~~~~~~~~

 You can mark the path "clerk:astro" as external to exclude it from the bundle, which will remove
 this error and leave the unresolved path in the bundle.

05:36:33 [ERROR] [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/astro-clerk-auth/dist/chunk-DUP22WC7.js:26:38: ERROR: Could not resolve "clerk:astro"
   at failureErrorWithLog (/Users/jacobweinbren/Documents/GitHub/Mappa/node_modules/vite/node_modules/esbuild/lib/main.js:1651:15)
   at /Users/jacobweinbren/Documents/GitHub/Mappa/node_modules/vite/node_modules/esbuild/lib/main.js:1059:25
   at /Users/jacobweinbren/Documents/GitHub/Mappa/node_modules/vite/node_modules/esbuild/lib/main.js:1527:9
   at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

JacobWeinbren avatar May 13 '24 04:05 JacobWeinbren