wobsoriano / nuxt-clerk-template

Auth starts here with the Nuxt and Clerk Demo
https://nuxt-clerk-template.nuxt.dev
98 stars 11 forks source link

[500] Clerk is not a constructor #11

Closed BlackBiM123 closed 9 months ago

BlackBiM123 commented 9 months ago

I am trying to switch from auth0 to clerk in my project, (Nuxt3) I do the analogy with the example and get an error

[nuxt] [request error] [unhandled] [500] Clerk is not a constructor at Object.install (./node_modules/vue-clerk/dist/plugin.mjs:14:19)
at Object.use (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3744:18)
at ./plugins/clerk.ts:7:18
at ./node_modules/nuxt/dist/app/nuxt.js:112:60
at fn (./node_modules/nuxt/dist/app/nuxt.js:156:44)
at Object.callAsync (./node_modules/unctx/dist/index.mjs:68:55)
at ./node_modules/nuxt/dist/app/nuxt.js:158:56
at Object.runWithContext (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3855:18)
at callWithNuxt (./node_modules/nuxt/dist/app/nuxt.js:158:24)
at Object.runWithContext (./node_modules/nuxt/dist/app/nuxt.js:32:29)

Any thoughts in what direction to move, what to pay attention to? because I'm stuck.

wobsoriano commented 9 months ago

Did you add vue-clerk and clerk-js to your Nuxt’s build.transpile array? Check this project’s nuxt config!

wobsoriano commented 9 months ago

Feel free to reopen!

BlackBiM123 commented 9 months ago

@wobsoriano No need for that, it was really about my inattention, thanks !