nuxt-themes/docus

Docus in now broken on Vercel

stebansaa opened this issue · 3 comments

issue started a few hours ago

Hello. I have same issues.

This is my log

[12:58:29.385] [error] Package subpath './lib/preprocess.js' is not defined by "exports" in /vercel/path0/node_modules/micromark/package.json imported from /vercel/path0/.nuxt/prerender/index.mjs [12:58:29.386] at new NodeError (node:internal/errors:399:5) [12:58:29.386] at exportsNotFound (node:internal/modules/esm/resolve:361:10) [12:58:29.386] at packageExportsResolve (node:internal/modules/esm/resolve:697:9) [12:58:29.386] at packageResolve (node:internal/modules/esm/resolve:872:14) [12:58:29.386] at moduleResolve (node:internal/modules/esm/resolve:938:20) [12:58:29.386] at defaultResolve (node:internal/modules/esm/resolve:1153:11) [12:58:29.386] at nextResolve (node:internal/modules/esm/loader:163:28) [12:58:29.386] at ESMLoader.resolve (node:internal/modules/esm/loader:838:30) [12:58:29.386] at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) [12:58:29.386] at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) [12:58:29.386] at link (node:internal/modules/esm/module_job:76:36) [12:58:29.386] [12:58:29.386] [error] Package subpath './lib/preprocess.js' is not defined by "exports" in /vercel/path0/node_modules/micromark/package.json imported from /vercel/path0/.nuxt/prerender/index.mjs [12:58:29.451] error Command failed with exit code 1. [12:58:29.452] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [12:58:29.473] Error: Command "yarn run build" exited with 1

Here is where the error starts on Vercel:

"Load plugin failed pinceau/volar Error [ERR_REQUIRE_ESM]: require() of ES Module /vercel/path0/node_modules/chalk/source/index.js from /vercel/path0/node_modules/style-dictionary-esm/dist/index.cjs not supported."

I have the same issue:

Load plugin failed: pinceau/volar Error [ERR_REQUIRE_ESM]: require() of ES Module /vercel/path0/node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js from /vercel/path0/node_modules/.pnpm/style-dictionary-esm@1.6.2/node_modules/style-dictionary-esm/dist/index.cjs not supported.