npm run build doesn't work, Laravel 11 + Vite
Only happens when I add the npm run build command, but I need it to generate the manifest.json.
Variables ->
NIXPACKS_BUILD_CMD
NIXPACKS_NO_CACHE = 1
Logs:
17 Replies
Project ID:
ddc402c7-4cc8-4fb1-bd35-90e685c893fc
full build logs please - https://bookmarklets.up.railway.app/log-downloader/
im sorry but i wont be able to help unless you can provide logs generated by the bookmarklet
The tool you shared its not working for me :cryingman:
follow the instructions
Ok, I think I got it
Had to run it from the console
send your package.json please
move those dev dependencies to just a dependencies object
The instance on railway is running now, its deploying
But now it doesn't load the CSS.
Dev Tools Terminal Error
App URL variable
This is how I reference the css in this view with Vite.
<!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
And of course it works on local, idk what happens on production
make sure you are loading your assets over https
New reply sent from Help Station thread:
Hi, could you fix the problem? I am having the same issue.You're seeing this because this thread has been automatically linked to the Help Station thread.