Closed x8BitRain closed 2 weeks ago
This was introduced in version 1.2.0
in https://github.com/stackblitz/tutorialkit/pull/394. The version 1.1.1
should work fine.
Looks like also pnpm build; pnpm preview
works just fine, it's just the development mode pnpm dev
when Vite fails to resolve default
export for the CJS depedency. 🤔
Another work-around for now is to add this in your astro.config.ts
:
import tutorialkit from "@tutorialkit/astro";
import { defineConfig } from "astro/config";
export default defineConfig({
devToolbar: {
enabled: false,
},
integrations: [tutorialkit()],
+ vite: {
+ optimizeDeps: {
+ include: ["@tutorialkit/astro > picomatch/posix.js"],
+ },
+ },
});
Fixed in version 1.2.1
.
Still have this issue when using yarn 1.22 - upgrading to latest yarn resolves
Describe the bug
Initing a new project via
npm create tutorial
and starting the project results inin the browser, without any modification to the project.
The demo project does not start and is stuck on "Preparing Environment".
This happens with npm, pnpm and bun, also tried to manually install
picomatch
and create a vite alias without success.Link to a StackBlitz project which shows the error
No response
Steps to reproduce
npm create tutorial
, enter all default optionsExpected behavior
The default project should start without error.
Screenshots
Platform
Additional context
No response