-
-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
bugSomething isn't workingSomething isn't working
Description
π The bug
When building the docs, I get the error The requested module 'file:///Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/ohash/dist/index.mjs' does not provide an export named 'diff'
when prerending the /
route.
Error snippet
ERROR [request error] [unhandled] [GET] http://localhost/__nuxt_error?error=true&url=%2F&statusCode=500&statusMessage=Server+Error&message=Server+Error 1:59:27 PM
The requested module 'file:///Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/ohash/dist/index.mjs' does not provide an export named 'diff'
import { isEqual, diff, hash as hash$2 } from '/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/ohash/dist/index.mjs';
^^^^
SyntaxError: The requested module '/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/ohash/dist/index.mjs' does not provide an export named 'diff'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async /Users/ezra/Projects/OSS/magic-regexp/docs/.docs/.nuxt/prerender/chunks/_/renderer.mjs:117:24
at async Object.render (/Users/ezra/Projects/OSS/magic-regexp/docs/.docs/.nuxt/prerender/chunks/_/renderer.mjs:286:64)
at async Object.handler (/Users/ezra/Projects/OSS/magic-regexp/docs/.docs/.nuxt/prerender/chunks/nitro/nitro.mjs:1990:22)
at async Object.handler (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:2009:19)
at async toNodeHandle (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:2301:7)
at async b (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/node-mock-http/dist/index.mjs:1:6808)
at async O (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/node-mock-http/dist/index.mjs:1:7091)
at async generateRoute (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected][email protected]/node_modules/nitropack/dist/core/index.mjs:2111:17)
at async Promise.all (index 1)
at async runParallel (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected][email protected]/node_modules/nitropack/dist/core/index.mjs:1581:3)
at async prerender (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected][email protected]/node_modules/nitropack/dist/core/index.mjs:2199:3)
at async /Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._0752d1eff11e4a1164d7fde0b999e96f/node_modules/nuxt/dist/shared/nuxt.B7-cu52A.mjs:4538:5
at async build (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._0752d1eff11e4a1164d7fde0b999e96f/node_modules/nuxt/dist/shared/nuxt.B7-cu52A.mjs:7086:3)
at async Object.run (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/build.mjs:91:5)
at async Object.run (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/generate.mjs:50:5)
at async runCommand$1 (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.VcyMLvO6.mjs:1767:16)
at async runCommand (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.VcyMLvO6.mjs:2094:10)
at async Object.setup (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]_patch_hash=0f882073ad4fa301216b6adbaa59bf6dd79ed2d97c27005f31b7ef5d46b55b_204abbd369f117481aa96b294f7196c5/node_modules/undocs/cli/cli.mjs:78:7)
at async runCommand (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:288:5)
at async runCommand (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:307:11)
at async runMain (/Users/ezra/Projects/OSS/magic-regexp/node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:445:7)
π οΈ To reproduce
Run pnpm run generate
from the docs
folder (I was unable to run the project in stackblitz due to nodejs version mismatches)
π Expected behaviour
The docs to be built and previewable
βΉοΈ Additional context
The issue seems to be related unjs/ohash#112, where diff
and other functions were moved to a utils folder. nuxt/ui@3f7df7b has updated @nuxt/ui
to use the updated import paths and ohash v2. This was released in nuxt ui v2.21.1. However, since this project is currently on @nuxt/ui-pro 1.7.0
and it's still using @nuxt/ui 2.2.0
Nuxt Project Info
- Operating System: `Darwin` - Node Version: `v20.18.0` - Nuxt Version: `3.16.0` - CLI Version: `3.21.1` - Nitro Version: `2.10.4` - Package Manager: `[email protected]` - Builder: `-` - User Config: `plausible` - Runtime Modules: `-` - Build Modules: `-``pnpm why ohash` Output
Legend: production dependency, optional only, dev only
docs /Users/ezra/Projects/OSS/magic-regexp/docs (PRIVATE)
devDependencies:
undocs 0.2.30
βββ¬ @nuxt/content 2.13.4
β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ @nuxtjs/mdc 0.9.5
β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ ohash 1.1.4
β βββ¬ @vueuse/nuxt 11.3.0
β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ¬ nuxt 3.16.0 peer
β β βββ¬ @nuxt/cli 3.22.5
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ¬ listhen 1.9.0
β β β β βββ¬ h3 1.15.0
β β β β βββ ohash 1.1.4
β β β βββ ohash 2.0.11
β β βββ¬ @nuxt/devtools 2.2.1
β β β βββ¬ @nuxt/devtools-kit 2.2.1
β β β β βββ¬ @nuxt/kit 3.16.0
β β β β βββ¬ c12 3.0.2
β β β β β βββ ohash 2.0.11
β β β β βββ ohash 2.0.11
β β β βββ¬ @nuxt/kit 3.16.0
β β β β βββ¬ c12 3.0.2
β β β β β βββ ohash 2.0.11
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β β βββ¬ vite-plugin-inspect 11.0.0
β β β βββ¬ @nuxt/kit 3.16.0 peer
β β β β βββ¬ c12 3.0.2
β β β β β βββ ohash 2.0.11
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ¬ @nuxt/telemetry 2.6.5
β β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ¬ @nuxt/vite-builder 3.16.0
β β β βββ¬ @nuxt/kit 3.16.0
β β β β βββ¬ c12 3.0.2
β β β β β βββ ohash 2.0.11
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β β βββ¬ unenv 2.0.0-rc.12
β β β βββ ohash 2.0.11
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ¬ nitropack 2.11.5
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ¬ listhen 1.9.0
β β β β βββ¬ h3 1.15.0
β β β β βββ ohash 1.1.4
β β β βββ ohash 2.0.11
β β β βββ¬ unenv 2.0.0-rc.12
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β β βββ¬ unenv 2.0.0-rc.12
β β βββ ohash 2.0.11
β βββ¬ listhen 1.9.0
β β βββ¬ h3 1.15.0
β β βββ ohash 1.1.4
β βββ ohash 1.1.4
β βββ¬ unstorage 1.14.4
β βββ¬ h3 1.15.0
β βββ ohash 1.1.4
βββ¬ @nuxt/fonts 0.10.3
β βββ¬ @nuxt/devtools-kit 1.7.0
β β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ h3 1.15.0
β β βββ ohash 1.1.4
β βββ ohash 1.1.4
β βββ¬ unifont 0.1.7
β β βββ ohash 1.1.4
β βββ¬ unstorage 1.14.4
β βββ¬ h3 1.15.0
β βββ ohash 1.1.4
βββ¬ @nuxt/ui-pro 1.7.0
β βββ¬ @nuxt/ui 2.21.0
β βββ¬ @nuxt/icon 1.10.3
β β βββ¬ @nuxt/devtools-kit 1.7.0
β β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ ohash 1.1.4
β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ @nuxtjs/color-mode 3.5.2
β β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ @nuxtjs/tailwindcss 6.13.1
β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ¬ c12 2.0.1
β β β βββ¬ giget 1.2.4
β β β β βββ ohash 1.1.4
β β β βββ ohash 1.1.4
β β βββ¬ h3 1.15.0
β β βββ ohash 1.1.4
β βββ ohash 1.1.4
βββ¬ @nuxtjs/plausible 1.2.0
β βββ¬ @nuxt/kit 3.16.0
β βββ¬ c12 3.0.2
β β βββ ohash 2.0.11
β βββ ohash 2.0.11
βββ¬ @nuxtjs/tailwindcss 6.13.1
β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ c12 2.0.1
β β βββ¬ giget 1.2.4
β β β βββ ohash 1.1.4
β β βββ ohash 1.1.4
β βββ¬ h3 1.15.0
β βββ ohash 1.1.4
βββ¬ automd 0.3.12
β βββ¬ c12 2.0.1
β βββ¬ giget 1.2.4
β β βββ ohash 1.1.4
β βββ ohash 1.1.4
βββ¬ c12 2.0.1
β βββ¬ giget 1.2.4
β β βββ ohash 1.1.4
β βββ ohash 1.1.4
βββ¬ nitropack 2.10.4
β βββ¬ c12 2.0.1
β β βββ¬ giget 1.2.4
β β β βββ ohash 1.1.4
β β βββ ohash 1.1.4
β βββ¬ h3 1.15.0
β β βββ ohash 1.1.4
β βββ¬ listhen 1.9.0
β β βββ¬ h3 1.15.0
β β βββ ohash 1.1.4
β βββ ohash 1.1.4
β βββ¬ unstorage 1.14.4
β βββ¬ h3 1.15.0
β βββ ohash 1.1.4
βββ¬ nuxt 3.16.0
β βββ¬ @nuxt/cli 3.22.5
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ¬ listhen 1.9.0
β β β βββ¬ h3 1.15.0
β β β βββ ohash 1.1.4
β β βββ ohash 2.0.11
β βββ¬ @nuxt/devtools 2.2.1
β β βββ¬ @nuxt/devtools-kit 2.2.1
β β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β β βββ¬ vite-plugin-inspect 11.0.0
β β βββ¬ @nuxt/kit 3.16.0 peer
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ @nuxt/telemetry 2.6.5
β β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ¬ @nuxt/vite-builder 3.16.0
β β βββ¬ @nuxt/kit 3.16.0
β β β βββ¬ c12 3.0.2
β β β β βββ ohash 2.0.11
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β β βββ¬ unenv 2.0.0-rc.12
β β βββ ohash 2.0.11
β βββ¬ c12 3.0.2
β β βββ ohash 2.0.11
β βββ¬ nitropack 2.11.5
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ¬ listhen 1.9.0
β β β βββ¬ h3 1.15.0
β β β βββ ohash 1.1.4
β β βββ ohash 2.0.11
β β βββ¬ unenv 2.0.0-rc.12
β β βββ ohash 2.0.11
β βββ ohash 2.0.11
β βββ¬ unenv 2.0.0-rc.12
β βββ ohash 2.0.11
βββ¬ nuxt-build-cache 0.1.1
β βββ¬ @nuxt/kit 3.16.0
β β βββ¬ c12 3.0.2
β β β βββ ohash 2.0.11
β β βββ ohash 2.0.11
β βββ ohash 1.1.4
βββ¬ unstorage 1.14.4
βββ¬ h3 1.15.0
βββ ohash 1.1.4
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working