oneezy / monorepo

Turborepo + Sveltekit + PNPM + Tailwind + Histoire
https://oneezy-monorepo.vercel.app
MIT License
87 stars 9 forks source link

The requested module 'vite' does not provide an export named 'isCSSRequest' #9

Open tirumal-rao opened 1 year ago

tirumal-rao commented 1 year ago

Getting following error when pnpm install

Scope: all 12 workspace projects

Lockfile is up to date, resolution step is skipped
Already up to date
apps/docs preinstall$ pnpm exec inherit -u
│ Nothing needs to be updated.
└─ Done in 507ms
apps/site preinstall$ pnpm exec inherit -u
│ Nothing needs to be updated.
└─ Done in 502ms
. preinstall$ pnpm exec inherit -u
│ Nothing needs to be updated.
└─ Done in 500ms
apps/+app preinstall$ pnpm exec inherit -u
│ Nothing needs to be updated.
└─ Done in 501ms
. postinstall$ pnpm exec ./.sh/symlinks.sh
└─ Running...
apps/+app prepare$ svelte-kit sync
│ file:///Users/weye/workspace/my-app/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.589_svelte@3.55.0+vite@3.2.5/node_modules/@sveltejs/kit/src/exports/vite/d
│ import { isCSSRequest } from 'vite';
│          ^^^^^^^^^^^^
│ SyntaxError: The requested module 'vite' does not provide an export named 'isCSSRequest'
│     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:528:24)
│     at async load_config (file:///Users/weye/workspace/my-app/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.589_svelte@3.55.0+vite@3.2.5/node_modules/@svelt
│     at async file:///Users/weye/workspace/my-app/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.589_svelte@3.55.0+vite@3.2.5/node_modules/@sveltejs/kit/src/c
│ Node.js v18.8.0
└─ Failed in 199ms at /Users/weye/workspace/my-app/apps/+app
apps/site prepare$ svelte-kit sync
└─ Running...
apps/docs prepare$ svelte-kit sync
└─ Running...
 ELIFECYCLE  Command failed with exit code 1.
oneezy commented 1 year ago

Updates are coming soon

tirumal-rao commented 1 year ago

What's so funny about this issue, Joseph?

magick93 commented 1 year ago

Any update to this issue? I'm having the same problem.

magick93 commented 1 year ago

Hi @oneezy - I managed to fix this by updated svelte and vite. However, I did this simply by updating every occurrences. I'm aware than some of these instances are derived / generated.

If you let me know where I should make this change I'll do a PR.

Thanks

jeblister commented 1 year ago

Hi @oneezy - I got the same error and don't find a fix on Vite repo here : https://github.com/vitejs/vite/issues/11190