How did you execute it?
"exports" exists only when a script is executed via a call from require()
If it is called from the RPC service, it should be ok (in WAK2 aka "Beta 2")
If you click on the "run" button of the code editor, "exports" won't exist
If you want to execute a module for test:
1 - do it via require from another file or generate
2 - create e fake exports object
Code:// example of fake exports for test if (typeof exports === "undefined") { exports = {}; console.warn('fake exports for test'); }
Alexandre Morgaut
W3C Advisory Committee representative for 4D
Web Architect & Community manager
I'm getting this error when I try to make an asynchronous RPC call from the client side.