wails-angular-template icon indicating copy to clipboard operation
wails-angular-template copied to clipboard

White screen after building

Open rpiscopo-easyweb opened this issue 3 years ago • 0 comments

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:

Wails.Init(() => {
  platformBrowserDynamic().bootstrapModule(AppModule)
    .catch(err => console.error(err));
});

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!

rpiscopo-easyweb avatar Nov 23 '21 13:11 rpiscopo-easyweb