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
[594.00ms] done
user@user-ThinkPad-L460:/my-project$ bunx tailwindcss init -p
error: could not determine executable to run for package tailwindcss
user@user-ThinkPad-L460:/my-project$
What is the expected behavior?
Install Tailwind CSS with Bun
bun add -D tailwindcss postcss autoprefixer
[594.00ms] done
user@user-ThinkPad-L460:/my-project$ bunx tailwindcss init -p
error: could not determine executable to run for package tailwindcss
user@user-ThinkPad-L460:/my-project$
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.2.2+c1708ea6a
What platform is your computer?
Linux 6.8.0-52-generic x86_64 x86_64
What steps can reproduce the bug?
user@user-ThinkPad-L460:~/my-project$ bun add -D tailwindcss postcss autoprefixer
bun add v1.2.2 (c1708ea)
installed [email protected]
installed [email protected]
installed [email protected] with binaries:
[594.00ms] done
user@user-ThinkPad-L460:
/my-project$ bunx tailwindcss init -p/my-project$error: could not determine executable to run for package tailwindcss
user@user-ThinkPad-L460:
What is the expected behavior?
Install Tailwind CSS with Bun
bun add -D tailwindcss postcss autoprefixer
Initialize Tailwind CSS Configuration
bunx tailwindcss init -p
this will generate two files:
tailwind.config.js
postcss.config.js
Configure Tailwind in tailwind.config.js
Open tailwind.config.js and update the content array to include your JSX and JS files:
/** @type {import('tailwindcss').Config} /
export default {
content: ["./index.html", "./src/**/.{js,jsx}"],
theme: {
extend: {},
},
plugins: [],
};
Add Tailwind Directives to CSS
Open src/index.css (or create it if not present) and add:
@tailwind base;
@tailwind components;
@tailwind utilities;
Start the Development Server
Run:
bun dev
This will start the Vite development server.
Now you have a Vite + React + Tailwind CSS setup using Bun as the package manager!
What do you see instead?
user@user-ThinkPad-L460:~/my-project$ bun add -D tailwindcss postcss autoprefixer
bun add v1.2.2 (c1708ea)
installed [email protected]
installed [email protected]
installed [email protected] with binaries:
[594.00ms] done
user@user-ThinkPad-L460:
/my-project$ bunx tailwindcss init -p/my-project$error: could not determine executable to run for package tailwindcss
user@user-ThinkPad-L460:
Additional information
No response
The text was updated successfully, but these errors were encountered: