TAINCER / wails-angular-template

21 stars 4 forks source link

White screen after building #3

Open rpiscopo-easyweb opened 3 years ago

rpiscopo-easyweb commented 3 years ago

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!