#Why i can't import a function?
1 messages · Page 1 of 1 (latest)
Both scripts are in the same package, that means your import must be a relative path.
"import {...} from "./MouseScrollCamera"
1 messages · Page 1 of 1 (latest)
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.
Both scripts are in the same package, that means your import must be a relative path.
"import {...} from "./MouseScrollCamera"