[Solved]Link folder code issue

#1

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

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

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?

0 Likes

#2

This looks like a TypeScript issue:

0 Likes

#3

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

1 Like