最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - I installed tailwindcss and tried to start dev server but it gives me an error instead on react - Stack Overflow

programmeradmin4浏览0评论

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论