vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

Can't compile any Vue project - The relative module was not found ./src/main.ts in multi ./src/main.ts

Open zmbq opened this issue 6 years ago • 29 comments

Version

3.1.1

Reproduction link

https://github.com/zmbq/vue-cli-bug

Node and OS info

10.13.0

Steps to reproduce

I've created a new Vue project with the vue cli, specifying Typescript, Babel, no class decorators, SCSS, tslint and no unit tests. The project is located under c:\sources\test. c:\sources is a directory junction (a Windows equivalent of symlinks) to d:\sources.

Then I did a yarn build

What is expected?

Project should compile

What is actually happening?

ERROR Failed to compile with 1 errors 9:37:35 AM

This relative module was not found:

  • ./src/main.ts in multi ./src/main.ts ERROR Build failed with errors.

When working from d:\sources\test everything is working properly. I've been using Vue on the same computer with the same directory junction without an issue.

Angular has a --preserve-symlinks option to make this work, I did not find a Vue counterpart.

zmbq avatar Nov 12 '18 07:11 zmbq