admin管理员组

文章数量:1401438

When I want to start my dev server the terminal gives me this error instead:

failed to load config from E:\Code\tailtests\vite.config.ts
error when starting dev server:
Error: Cannot find module '../lightningcss.win32-x64-msvc.node'
- E:\Code\tailtests\node_modules\lightningcss\node\index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1405:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
    at Function._load (node:internal/modules/cjs/loader:1215:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1491:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (E:\Code\tailtests\node_modules\lightningcss\node\index.js:22:22)
    at Module._compile (node:internal/modules/cjs/loader:1734:14)

Are there any solutions to fix this error? I tried to reinstall lightningcss and I tried some other things but none of them worked.

I installed tailwindcss properly like on the website. I also installed it the same way on my laptop and it works on it but on my pc it wont work for some reason.

When I want to start my dev server the terminal gives me this error instead:

failed to load config from E:\Code\tailtests\vite.config.ts
error when starting dev server:
Error: Cannot find module '../lightningcss.win32-x64-msvc.node'
- E:\Code\tailtests\node_modules\lightningcss\node\index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1405:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
    at Function._load (node:internal/modules/cjs/loader:1215:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1491:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (E:\Code\tailtests\node_modules\lightningcss\node\index.js:22:22)
    at Module._compile (node:internal/modules/cjs/loader:1734:14)

Are there any solutions to fix this error? I tried to reinstall lightningcss and I tried some other things but none of them worked.

I installed tailwindcss properly like on the website. I also installed it the same way on my laptop and it works on it but on my pc it wont work for some reason.

Share Improve this question edited Mar 23 at 20:11 rozsazoltan 11k6 gold badges20 silver badges57 bronze badges asked Mar 23 at 19:47 Victor KeuchlerVictor Keuchler 1
Add a comment  | 

1 Answer 1

Reset to default 0

The issue was solved after instaling Microsoft redistributable package.

  • Microsoft Visual C++ Redistributable latest supported downloads

Reference:

  • expo/expo#31775
  • tailwindlabs/tailwindcss#16653

本文标签: