Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
TerianDiLun's avatar
7 months ago

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