Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,35 @@ Open [http://localhost:3000](http://localhost:3000)
## License

MIT
## Troubleshooting

### Error: Cannot find module '../lightningcss.win32-x64-msvc.node'

If you see an error like this during build or startup:

```
Error: Cannot find module '../lightningcss.win32-x64-msvc.node'
Require stack:
- .../node_modules/lightningcss/node/index.js
- .../node_modules/@tailwindcss/node/dist/index.js
- .../node_modules/@tailwindcss/postcss/dist/index.js
- .../.next/build/chunks/[turbopack]_runtime.js
- .../.next/postcss.js
```

This means the native LightningCSS binary for Windows is missing or not installed correctly. To fix:

1. Delete your `node_modules` and lock file:
```powershell
Remove-Item -Recurse -Force node_modules
Remove-Item -Force pnpm-lock.yaml
pnpm install
```
2. If the error persists, clear the pnpm cache:
```powershell
pnpm store prune
pnpm install
```
3. Make sure your Node.js version is compatible with your dependencies.

This issue is common when switching platforms or if the install was interrupted.