Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh project fails with missing tailwind dependency #14842

Closed
7 tasks done
Schachte opened this issue Nov 1, 2023 · 2 comments
Closed
7 tasks done

Fresh project fails with missing tailwind dependency #14842

Schachte opened this issue Nov 1, 2023 · 2 comments

Comments

@Schachte
Copy link

Schachte commented Nov 1, 2023

Describe the bug

Following the getting started page on the official vite docs:

yarn create vite video-validator --template react-ts
cd video-validator
yarn install
yarn dev

I'm greeted with an error:

[plugin:vite:css] [postcss] Cannot read properties of undefined (reading 'config')
/Users/person/Documents/video-validator/src/App.css

This is without me doing anything.

❯ node --version
v21.1.0

Reproduction

http://github.com/notnecessary

Steps to reproduce

Run a project:
yarn create vite video-validator --template react-ts

System Info

System:
    OS: macOS 13.4.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 291.91 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.1.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.2.0 - /opt/homebrew/bin/npm
    pnpm: 8.7.4 - /opt/homebrew/bin/pnpm
  Browsers:
    Brave Browser: 118.1.59.117
    Edge: 114.0.1823.79
    Safari: 16.5.2
  npmPackages:
    @vitejs/plugin-react: ^4.0.3 => 4.1.0
    vite: ^4.4.5 => 4.5.0

Used Package Manager

yarn

Logs

No response

Validations

@Schachte
Copy link
Author

Schachte commented Nov 1, 2023

Resolution can be found here:
#11390

Might be nice to prioritize merging this change.

tl;dr

vite.config.ts

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
  plugins: [react()],
  css: {
    postcss: {},
  },
});

Copy link

github-actions bot commented Nov 1, 2023

Hello @Schachte. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants