Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

NPM Run Build Error #12

Open
cpcadmission2021 opened this issue Nov 6, 2023 · 1 comment
Open

NPM Run Build Error #12

cpcadmission2021 opened this issue Nov 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@cpcadmission2021
Copy link

cpcadmission2021 commented Nov 6, 2023

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 :)

@cpcadmission2021 cpcadmission2021 added the bug Something isn't working label Nov 6, 2023
@irvine48
Copy link

i do experience similar issue, not complete vue file generate in js/splade folder and npm run seen broken in my old project.

i do test splade core to new project to test it out all feature available, it work fine, complete vue with all bridge generate on the fly, but today when i try to integrate into old project, seen broken vue generated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants