This repository was archived by the owner on Feb 27, 2024. It is now read-only.
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
NPM Run Build Error #12
Open
Description
What happened?
I have a fresh install laravel app with splade (v2) by running the automatic installation.
After installation, executing the command "npm run build" returns an ErrorException
[laravel-splade-vite] Command failed with exit code 1: php artisan splade:core:build-components --unprocessed
Removing C:\xampp\htdocs\Studyload\resources\js/splade\SpladeComponentDemo.vue
Done!
Searching for components in C:\xampp\htdocs\Studyload\resources\views
Compiling C:\xampp\htdocs\Studyload\resources\views\components\demo.blade.php
ErrorException
file_put_contents(C:\xampp\htdocs\Studyload\resources\js/splade\Splade\components\demo.vue):
Failed to open stream: No such file or directory
at vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php:205
201▕ * @return int|bool
202▕ */
203▕ public function put($path, $contents, $lock = false)
204▕ {
➜ 205▕ return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
206▕ }
207▕
208▕ /**
209▕ * Write the contents of a file, replacing it atomically if it already exists.
How to reproduce the bug
Fresh install app, and run npm run build
command
Package Version
Splade Core - ^1.0.0 & Splade Vite - ^1.0.3
PHP Version
8.2.0
Laravel Version
10.10
Which operating systems does with happen with?
Windows
Notes
Your inputs would be a great help :)