I'm new to Docker and trying to work with HeroUI to generate Windows binaries in a Linux environment using Docker. I have a Windows host and I'm using the 'node:24-bullseye' container. After initializing my HeroUI app with 'herui init my-heroui-app' and installing dependencies with 'npm i', I create a Docker setup with a Dockerfile that sets the working directory and exposes port 3000. However, when I start the container, I encounter the error 'Cannot find module '../lightningcss.linux-x64-gnu.node'. This seems to be due to differences in the builds between Windows and Linux. Could someone guide me on how to resolve this issue and what I should learn to successfully set up my development environment?
1 Answer
It sounds like the main issue here is between the Windows host and the Linux environment in your Docker container. One option is to do all your development in WSL (Windows Subsystem for Linux), where you’ll have features from IDEs that support development directly in Linux. Alternatively, you might want to look into using devcontainers which can help standardize your development environment across platforms.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically