Encore TS starter template: broken path resolution and weird encore.dev file in node_modules

I installed an Encore TypeScript starter template and the project built with errors plus broken TypeScript path resolution in VS Code. The weird part was a file called encore.dev appearing inside node_modules that VS Code said didnt exist. I went through the install a few times before spotting the cause. The maintainer confirmed the symlink layout is correct, and the reporter closed the issue themselves in October 2024.

The encore.dev entry in node_modules is a symlink to a folder, not a file, which is why VS Code looks confused when you click it. The actual breakage was that the reporter had bind mounted their local project folder into a prebuilt docker image, which broke the symlink to /root/../../encore.dev and killed module resolution. Fix: dont bind mount your project over the docker image, or if you must, re-create the encore.dev symlink so it points at a real folder. The reporter confirmed everything worked once the mount was fixed. Source: https://github.com/encoredev/encore/issues/1494

Source: https://github.com/encoredev/encore/issues/1494