Skip to content
← Back to activity

Public problem

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

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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