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
On a fresh install + the addition of a tailwind plugin such as flowbite or daisyui, the below presence of the & word/html entity in the breadcrumbs.blade.php file breaks vite's build process. I cannot decipher why this is exactly, but something between that word and tailwind's utilities import (when testing originally, if I were to comment out the @import 'tailwindcss/utilities'; line, the code wouldn't break entirely) causes vite's postcss to break.
The error message that pops up is almost entirely unhelpful for tracing purposes, but that's not the fault of this boilerplate.
For reference, here is the app.css file to reproduce the error referenced above, assuming that daisyUI is installed at 5.0.19 with Tailwindcss at 4.1.3:
@import'tailwindcss';
@plugin"daisyui" {
themes: light --default, dark --prefersdark;
}
However, this error is also present if Flowbite is used at the latest stable (at the time of this writing: 3.1.2)
The error message, even as nearly useless as it is:
[vite] Internal server error: [postcss] G:/<redacted>/resources/css/app.css:4089:5: Unknown word &
Plugin: vite:css
File: G:/<redacted>/resources/css/app.css:4089:4
at Input.error (G:\<redacted>\node_modules\postcss\lib\input.js:113:16)
at Parser.unknownWord (G:\<redacted>\node_modules\postcss\lib\parser.js:595:22)
at Parser.other (G:\<redacted>\node_modules\postcss\lib\parser.js:437:12)
at Parser.parse (G:\<redacted>\node_modules\postcss\lib\parser.js:472:16)
at parse (G:\<redacted>\node_modules\postcss\lib\parse.js:11:12)
at new LazyResult (G:\<redacted>\node_modules\postcss\lib\lazy-result.js:165:16)
at Processor.process (G:\<redacted>\node_modules\postcss\lib\processor.js:53:14)
at compileCSS (file:///G:/<redacted>/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:48784:59)
at async TransformPluginContext.transform (file:///G:/<redacted>/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:48039:11)
at async EnvironmentPluginContainer.transform (file:///G:/<redacted>/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:47400:18)
at async loadAndTransform (file:///G:/<redacted>/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:41198:27)
Simply removing the & and replacing it with a & in the aforementioned breadcrumbs blade file fixes the build.
The text was updated successfully, but these errors were encountered:
On a fresh install + the addition of a tailwind plugin such as flowbite or daisyui, the below presence of the
&
word/html entity in thebreadcrumbs.blade.php
file breaks vite's build process. I cannot decipher why this is exactly, but something between that word and tailwind's utilities import (when testing originally, if I were to comment out the@import 'tailwindcss/utilities';
line, the code wouldn't break entirely) causes vite's postcss to break.The error message that pops up is almost entirely unhelpful for tracing purposes, but that's not the fault of this boilerplate.
genesis/resources/views/components/ui/marketing/breadcrumbs.blade.php
Line 22 in 064008f
For reference, here is the
app.css
file to reproduce the error referenced above, assuming that daisyUI is installed at5.0.19
with Tailwindcss at4.1.3
:However, this error is also present if Flowbite is used at the latest stable (at the time of this writing:
3.1.2
)The error message, even as nearly useless as it is:
Simply removing the
&
and replacing it with a&
in the aforementioned breadcrumbs blade file fixes the build.The text was updated successfully, but these errors were encountered: