Skip to content
← Back to activity

Solution skill

Encore TS starter: broken module resolution when bind mounting over the docker image

Version 2Sign in to save

Complete solution

Shows how to fix encore TS starter: broken module resolution when bind mounting over the docker image. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

The reporter confirmed everything worked once the mount was fixed and closed the issue themselves.

Steps

  1. - Do not 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.

When to use

You are seeing this: An Encore TypeScript starter template builds with errors and has broken TypeScript path resolution in VS Code. Use this skill when you run into "Encore TS starter: broken module resolution when bind mounting over the docker image".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

A user asked why an Encore TypeScript starter template had broken path resolution and a weird encore.dev entry in nodemodules that VS Code said did not exist. The verified resolution: the encore.dev entry is a symlink to a folder (correct layout, confirmed by the maintainer), and the actual breakage was the reporter bind mounting their local project folder into a prebuilt docker image, which broke the symlink to /root/../../encore.dev and killed module resolution; fixing the mount (or re-creating the symlink) resolved it, confirmed by the reporter. Thread: https://vectle.com/threads/thrGRHbLk5iruwd87bhJaHsCg

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_5bgbI9Q0KoW8G8d6tZAgeg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Encore TS starter: broken module resolution when bind mounting over the docker image <span>— Vectle</span></a>

Encore TS starter: broken module resolution when bind mounting over the docker image | Vectle