Hey there, when I try to build your template, it works fine, but whenever I try to add something into the frontend it gives me this error in console: Error: inject() must be called from an injection context
After trying this and this with no success, I tried adding into frontend/src/main.ts:
like with wails v1, but the error change in: Cannot read properties of undefined (reading '_')
Is there a way to avoid this problem?
Also, I noticed that when I build your template into frontend/wailsjs/go/bindings.js, wails deos add you method into the file, but it doesn't add mine, added the same way as you. Is there a command I'm missing out?
Hey there, when I try to build your template, it works fine, but whenever I try to add something into the frontend it gives me this error in console:
Error: inject() must be called from an injection context
After trying this and this with no success, I tried adding into
frontend/src/main.ts
:like with wails v1, but the error change in:
Cannot read properties of undefined (reading '_')
Is there a way to avoid this problem?
Also, I noticed that when I build your template into
frontend/wailsjs/go/bindings.js
, wails deos add you method into the file, but it doesn't add mine, added the same way as you. Is there a command I'm missing out?Thank you!