Forum Discussion
TerianDiLun
11 months agoMHCP Member
Exporting member function from module but getting error "module does not have member function"
I am following the meta quest tutorial and I am getting an error trying to import a function.
inside GameManager.ts
export const moveGemToCourse = new hz.LocalEvent<{}>('moveGemToCourse');
inside GemController.ts
import {moveGemToCourse} from 'GameManager';
My error message is:
[GemController] (2, 8:23) Module '"GameManager"' has no exported member 'moveGemToCourse'.
I create a brand new GemController.ts and put the import statement and immeditatley get the error which leads me to believe it is an error in gama manager. Any ideas?
No RepliesBe the first to reply
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device