aborn / nuxt-openid-connect

OpenID-Connect(OIDC) integration module for nuxt 3.0.
31 stars 16 forks source link

some issue with logger #25

Closed raj-saroj-vst-au4 closed 5 months ago

raj-saroj-vst-au4 commented 6 months ago

can u pls update the package ?

raj-saroj-vst-au4 commented 6 months ago

The git project as whole works but the package nuxt-openid-connect when added by npm and also configured in my project as instructed in Readme doesnt work.

aborn commented 5 months ago

Can you show me the error message? For me, this package works well in my project.

raj-saroj-vst-au4 commented 5 months ago

Import logger failed in runtime, pls try ur package in latest nuxt, ill share the exact trace in 10mins

Steps to reproduce : 1) npx nuxi init oidcauthproject 2) cd oidcauthproject 3) npm install 4) npm install nuxt-openid-connect 5) followed your readme for config 6) npm run dev 7) check console logs in terminal

raj-saroj-vst-au4 commented 5 months ago

iam using nuxt 3.9.3 and here's the log trace :

[11:02:19 am] ERROR This module cannot be importedin server runtime. [importing @nuxt/kit from node_modules/nuxt-openid-connect/dist/runtime/server/routes/oidc/cbt.mjs]

[11:02:20 am] ERROR This module cannot be importedin server runtime. [importing node_modules/@nuxt/kit/dist/index.mjs from node_modules/nuxt-openid-connect/dist/runtime/utils/logger.mjs]

✔ Nitro built in 922 ms nitro 11:02:20 am

[11:02:20 am] ERROR [worker reload] [worker init] The requested module 'file:///home/raj/Downloads/authentication%20nuxt/eynuxt5/node_modules/unenv/runtime/mock/proxy.cjs' does not provide an export named 'logger'

import { logger as logger$1 } from '/home/raj/Downloads/authentication%20nuxt/eynuxt5/node_modules/unenv/runtime/mock/proxy.cjs'; ^^^^^^ SyntaxError: The requested module '/home/raj/Downloads/authentication%20nuxt/eynuxt5/node_modules/unenv/runtime/mock/proxy.cjs' does not provide an export named 'logger' at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21) at async ModuleJob.run (node:internal/modules/esm/module_job:214:5) at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) at async loadESM (node:internal/process/esm_loader:28:7) at async handleMainPromise (node:internal/modules/run_main:120:12)

aborn commented 5 months ago

use latset version 0.7.0