Skip to content

White screen after building #3

@ghost

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions