You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the error below while setting up a new project and running pnpm dev (=vite dev). Here is my vite.config.ts:
import { defineConfig } from "vite";
import { nitro } from "nitro/vite";
import { solidStart } from "@solidjs/start/config";
import { solidBase } from "@kobalte/solidbase/config";
export default defineConfig({
...solidBase.startConfig,
plugins: [solidBase.plugin(), solidStart(solidBase.startConfig()), nitro()],
});
And the error:
failed to load config from <...>\vite.config.ts
error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'resolve' imported from <...>node_modules\.pnpm\@kobalte+solidbase@0.6.11_@_e7b5b0a31f22fd01cba0f9b3e1260738\node_modules\@kobalte\solidbase\dist\vite-mdx\imports.js
I see that resolve is listed only in dev deps, but it seems it's needed for consumers (at least in development?). I added resolve to my project explicitly, and the command now runs successfully (I hit another issue, which I'll probably open another issue for).
Activity