Skip to content

Vite CJS build warning caused by import of unoCSSConfig from @tutorialkit/astro #244

@AriPerkkio

Description

@AriPerkkio

Describe the bug

When TutorialKit is started in development or build mode, Vite's CJS build entrypoint error is shown:

$ pnpm dev
...
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.

Steps to reproduce

$ pnpm create tutorial

$ pnpm dev
...
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
$ code uno.config.ts

- import { unoCSSConfig } from '@tutorialkit/astro';

export default defineConfig({
-  ...unoCSSConfig,
$ pnpm dev

# No warnings

Expected behavior

No warning should be shown

Platform

  • TutorialKit version: 0.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    nice-to-haveNot breaking anything but nice to have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions