#Why i can't import a function?

1 messages · Page 1 of 1 (latest)

fair verge
#

I made a class in src/scripts named MouseScrollCamera.ts, and now i've tried to import it to another class in the same folder, but it doesn't work. I will attach some screenshots to this question.

wheat portal
#

Both scripts are in the same package, that means your import must be a relative path.

"import {...} from "./MouseScrollCamera"