Why i can't import a function?

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.


Original Post on Discord

by user 328144332622266369

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

"import {…} from “./MouseScrollCamera”

Ohh, thank you very much!

by user 328144332622266369