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

Nuxt 3 compatibility #3

Open
FelixGrafschmidt opened this issue Jan 11, 2025 · 1 comment
Open

Nuxt 3 compatibility #3

FelixGrafschmidt opened this issue Jan 11, 2025 · 1 comment

Comments

@FelixGrafschmidt
Copy link

I tried installing this plugin in a Nuxt 3 application. Since there are no dedicated installation instructions, I tried installing it as either a regular nuxt module or via vite. Both of those lead to the same error:
` ERROR Cannot start nuxt: Dynamic require of "fs" is not supported

at node_modules/unplugin-unocss-config/dist/chunk-4EKVX32J.mjs:12:9
at Object.fs (node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:1310:27)
at __webpack_require__ (node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:1323:45)
at node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:1336:28
at node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:4375:9
at ../../node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js (node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:4376:7)
at __require2 (node_modules/unplugin-unocss-config/dist/chunk-4EKVX32J.mjs:18:50)
at module.exports (node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:33032:21)
at loadConfigFile (node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:40097:50)
at async Object.load (node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:40030:24)
at async loadConfig (node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:40167:18)
at async config (node_modules/unplugin-unocss-config/dist/chunk-FPTZOAFX.mjs:40187:32)
at async runConfigHook (node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:53893:17)
at async resolveConfig (node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:53249:12)
at async _createServer (node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:43534:18)
at async buildClient (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.Dr_x9sHK.mjs:722:24)
at async withLogs (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.Dr_x9sHK.mjs:1533:3)
at async bundle (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.Dr_x9sHK.mjs:1524:3)
at async bundle (node_modules/nuxt/dist/index.mjs:6709:5)
at async build (node_modules/nuxt/dist/index.mjs:6571:3)
at async Promise.all (index 1)
at async NuxtDevServer._load (node_modules/nuxi/dist/chunks/dev2.mjs:1932:5)
at async NuxtDevServer.load (node_modules/nuxi/dist/chunks/dev2.mjs:1822:7)
at async NuxtDevServer.init (node_modules/nuxi/dist/chunks/dev2.mjs:1817:5)
at async Object.run (node_modules/nuxi/dist/chunks/dev-child.mjs:110:5)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.DSPrE7vg.mjs:1767:16)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.DSPrE7vg.mjs:1758:11)
at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.DSPrE7vg.mjs:1896:7)`

Am I doing something wrong? Or is this plugin not compatible with nuxt 3 (yet)?

@zyyv
Copy link
Member

zyyv commented Jan 13, 2025

The package may be damaged because it has not been updated for a long time. I need to fix it.

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