3

After running the larael new command using the vue starter kit, I get the following:

    failed to load config from C:      \Users\rober\MyDocuments\www\tutorials\test123\vite.config.ts
    error during build:
    Error: Cannot find module '../lightningcss.win32-x64-msvc.node'
    Require stack:
    - C:  \Users\rober\MyDocuments\www\tutorials\test123\node_modules\lightningcss\node\index.js
        at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
        at Function._load (node:internal/modules/cjs/loader:1055:27)
        at TracingChannel.traceSync (node:diagnostics_channel:322:14)
        at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
        at Module.require (node:internal/modules/cjs/loader:1311:12)
        at require (node:internal/modules/helpers:136:16)
        at Object.<anonymous> (C:    \Users\rober\MyDocuments\www\tutorials\test123\node_modules\lightningcss\node\index.js:22:22)
    at Module._compile (node:internal/modules/cjs/loader:1554:14)
    at Object..js (node:internal/modules/cjs/loader:1706:10)
    at Module.load (node:internal/modules/cjs/loader:1289:32)

This just started happening today. The command I am running is:

laravel new test123 --vue

I have run this command many times in the past with no problem.

3
  • You need to download Microsoft redistributable package github.com/tailwindlabs/tailwindcss/discussions/16653 Commented Sep 11 at 10:30
  • This had no effect. Still getting the same error. Commented Sep 11 at 21:15
  • - This problem is not with Laravel itself but with Vite / lightningcss on Windows. - If the issue persists, deleting node_modules/lightningcss and reinstalling may force the correct native binary to download. Commented Sep 16 at 10:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.