I have created a new project and added fortify, jetstream and livewire.
When I ran the final "npn run dev" I got the following error:
ERROR in ./resources/css/app.css
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
TypeError: The 'compilation' argument must be an instance of Compilation
at getCompilationHooks (C:\Users\Lars\Pegasos\node_modules\webpack\lib\javascript\JavascriptModulesPlugin.js:119:10)
at C:\Users\Lars\Pegasos\node_modules\webpack\lib\javascript\CommonJsChunkFormatPlugin.js:30:19
at Hook.eval [as call] (eval at create (C:\Users\Lars\pegasos\node_modules\tapable\lib\HookCodeFactory.js:19:10), :7:1)
at Hook.CALL_DELEGATE [as _call] (C:\Users\Lars\pegasos\node_modules\tapable\lib\Hook.js:14:14)
at Compiler.newCompilation (C:\Users\Lars\pegasos\node_modules\webpack\lib\Compiler.js:990:30)
at C:\Users\Lars\pegasos\node_modules\webpack\lib\Compiler.js:1033:29
at Hook.eval [as callAsync] (eval at create (C:\Users\Lars\pegasos\node_modules\tapable\lib\HookCodeFactory.js:33:10), :15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Users\Lars\pegasos\node_modules\tapable\lib\Hook.js:18:14)
at Compiler.compile (C:\Users\Lars\pegasos\node_modules\webpack\lib\Compiler.js:1028:28)
at Compiler.runAsChild (C:\Users\Lars\pegasos\node_modules\webpack\lib\Compiler.js:495:8)
This was my third try.
The first try actually worked in this respekt but had an other problem so I decided to try to start from scrach.
The second try ended up like the third.
PS C:\Users\Lars\Pegasos> rm package-lock.json yarn.lock
Remove-Item : A positional parameter cannot be found that accepts argument 'yarn.lock'.
At line:1 char:1
Update your postcss-import, v12 uses postcss 7, you're using postcss 8, postcss-import ^13.0.0 should work, not sure it'll fix the current issue but it'll fix dependency error's later.
21 error code ELIFECYCLE 22 error syscall spawn bash 23 error file bash 24 error path bash 25 error errno -4058 26 error @ dev: npm run development 26 error spawn bash ENOENT 27 error Failed at the @ dev script. 27 error This is probably not a problem with npm. There is likely additional logging output above