[Solved]Link folder code issue

For code reuse, I used link to link other folders into the project src

Most performed well, but only greensock made the following mistakes:

G:/xxx/src is project src folder and contains the link of greensock.
E:/xxx is greensock original path.

Only the code in greensock behaves abnormally and the other linked folders are all normal.

How to solve it, or is there a better way to reuse code?

This looks like a TypeScript issue:

It’s caused by webpack.
Solve it by setting resolve.symlinks to false .

1 Like