slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
33.49k stars 1.37k forks source link

Unable to run dev server or build due to missing windi.config.js #241

Closed HamzaMoiyadi closed 3 years ago

HamzaMoiyadi commented 3 years ago

Describe the bug After upgrading to v0.20.1, I am unable to build or serve the slides due to (node:14620) UnhandledPromiseRejectionWarning: Error: Cannot find module 'windi.config.js'

To Reproduce Steps to reproduce the behavior:

  1. Upgraded an existing slidev project to v0.20.1
  2. Run yarn dev or yarn build
  3. See the error in the termincal

Desktop (please complete the following information):

antfu commented 3 years ago

Can you share repro? Thanks

HamzaMoiyadi commented 3 years ago

@antfu I've given you access to my repository. Will that suffice?

antfu commented 3 years ago

Fixed in v0.20.4. However, it's better to use windicss setup hook whenever possible to have better integrations (newly introduced in v0.14): https://sli.dev/custom/config-windicss.html