Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest nuxt release candidate fails #3

Closed
kantum opened this issue Nov 18, 2022 · 1 comment
Closed

Latest nuxt release candidate fails #3

kantum opened this issue Nov 18, 2022 · 1 comment

Comments

@kantum
Copy link

kantum commented Nov 18, 2022

This module does not work with nuxt 3.0.0:

 ERROR  [worker reload] [worker init] The requested module 'file:///home/*********/node_modules/.pnpm/h3@1.0.1/node_modules/h3/dist/index.mjs' does not provide an export named 'useCookie'                                                13:57:29

  import { eventHandler, setHeaders, sendRedirect, defineEventHandler, handleCacheHeaders, createEvent, getRequestHeader, getRequestHeaders, setResponseHeader, useCookie, setCookie as setCookie$1, deleteCookie, createApp, createRouter as createRouter$1, lazyEventHandler, toNodeListener, getQuery, createError } from 'node_modules/.pnpm/h3@1.0.1/node_modules/h3/dist/index.mjs';
  ^^^^^^^^^
  SyntaxError: The requested module 'node_modules/.pnpm/h3@1.0.1/node_modules/h3/dist/index.mjs' does not provide an export named 'useCookie'
  at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
  at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
  at async Promise.all (index 0)
  at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
  at async loadESM (node:internal/process/esm_loader:91:5)                                                                                                                                                                                                                13:57:24
  at async handleMainPromise (node:internal/modules/run_main:65:12)

nuxt 3.0.0-r.11 and nuxt 3.0.0-r.12 seem ok.

nuxt 3.0.0-r.13

 WARN  Sourcemap for "/home/kantum/depots/JobPass/jobpass/nuxt-login/node_modules/.pnpm/nuxt-openid-connect@0.3.0/node_modules/nuxt-openid-connect/dist/runtime/plugin.mjs" points to missing source files

nuxt 3.0.0-r.14 (latest)

 ERROR  Cannot read properties of undefined (reading 'openidConnect')                                                                                                                                                                                                     14:04:55

  at setup (node_modules/.pnpm/nuxt-openid-connect@0.3.0/node_modules/nuxt-openid-connect/dist/module.mjs:82:94)
  at normalizedModule (node_modules/.pnpm/@nuxt+kit@3.0.0/node_modules/@nuxt/kit/dist/index.mjs:167:29)
  at async installModule (node_modules/.pnpm/@nuxt+kit@3.0.0-rc.14/node_modules/@nuxt/kit/dist/index.mjs:416:3)
  at async initNuxt (node_modules/.pnpm/nuxt@3.0.0-rc.14/node_modules/nuxt/dist/index.mjs:1827:7)
  at async loadNuxt (node_modules/.pnpm/nuxt@3.0.0-rc.14/node_modules/nuxt/dist/index.mjs:1859:5)
  at async loadNuxt (node_modules/.pnpm/@nuxt+kit@3.0.0/node_modules/@nuxt/kit/dist/index.mjs:493:19)
  at async Object.invoke (node_modules/.pnpm/nuxi@3.0.0-rc.14/node_modules/nuxi/dist/chunks/prepare.mjs:30:18)
  at async _main (node_modules/.pnpm/nuxi@3.0.0-rc.14/node_modules/nuxi/dist/cli.mjs:50:20)

 ELIFECYCLE  Command failed with exit code

I would love to use this module with nuxt 3.0.1 when it releases. Can you check why it does not work with rc.14?

@aborn
Copy link
Owner

aborn commented Nov 18, 2022

Upgrade to 0.4.0 fix this problem. case by unjs/h3#156 .

@aborn aborn closed this as completed Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants