-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
What version of Tailwind CSS are you using?
4.0.0
What build tool (or framework if it abstracts the build tool) are you using?
vue3
vite/6.0.11 freebsd-x64 node-v20.12.2
What version of Node.js are you using?
20.12.2
What browser are you using?
Firefox
What operating system are you using?
FreeBSD
Describe your issue
~/code/projects/amnesia_admin/ npx vite --host 127.0.0.1 --port 3000 --base /bbpf/admin/
failed to load config from /usr/home/jcigar/code/projects/amnesia_admin/vite.config.mjs
error when starting dev server:
Error: Cannot find module '/usr/home/jcigar/code/projects/amnesia_admin/node_modules/@tailwindcss/oxide-freebsd-x64/tailwindcss-oxide.freebsd-x64.node'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:443:19)
at Module._findPath (node:internal/modules/cjs/loader:714:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1129:27)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/usr/home/jcigar/code/projects/amnesia_admin/node_modules/@tailwindcss/oxide/index.js:160:25)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
This is with:
~/code/projects/amnesia_admin/ cat tailwind.config.mjs
import { fontFamily } from './src/fonts'
module.exports = {
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
fontFamily: fontFamily,
extend: {},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
safelist: [
{
pattern : /font-/,
variants: ['hover', 'sm', 'md', 'lg', 'xl', '2xl']
},
/*
{
pattern: /(font|h|w|px|py|pt|pb|pl|pr|mx|my|mt|mb|ml|mr|text|bg|outline)-/,
variants: ['hover', 'sm', 'md', 'lg', 'xl', '2xl']
}
*/
]
}Thanks!
madpilot78
Metadata
Metadata
Assignees
Labels
No labels