Are you sure that the path is right ?
@import './node_modules/pikaday/css/pikaday.css';
Where have you stored the app.css file ? In the same root folder that the node_modules folder ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm installing the pikaday datepicker following this tutorial --> https://dev.to/snehalkadwe/how-to-use-pikaday-datepicker-library-in-laravel-8-and-livewire-4ka9 . The installation goes right and the css is loaded but in the vite console this error is present :
Unable to resolve `@import "./node_modules/pikaday/css/pikaday.css"` from <local_path>
my app.css is something like
@import './node_modules/pikaday/css/pikaday.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
[x-cloak] {
display: none;
}
/* margine content centrale pagine */
.px-left-side-wide {
padding-left: 4rem;
padding-right: 2rem;
}
...
...
...
And again, the css is loaded correctly but the error is still there in the console. I don't know what to do.
Are you sure that the path is right ?
@import './node_modules/pikaday/css/pikaday.css';
Where have you stored the app.css file ? In the same root folder that the node_modules folder ?
Please or to participate in this conversation.