jsverse/transloco

Bug(scope): logging "missing translation key" when ssr is enabled

mackelito opened this issue ยท 1 comments

Is there an existing issue for this?

  • I have searched the existing issues

Which Transloco package(s) are the source of the bug?

Transloco

Is this a regression?

No

Current behavior

when adding

        "server": "apps/consent-site/src/main.server.ts",
        "prerender": true,
        "ssr": {
          "entry": "apps/consent-site/server.ts"
        }

the console loops the error message "missing translation key" making it impossible to load the page.

Expected behavior

Should only log it once like in browser console.

Steps to reproduce

  • generate a new site with ssr enabled.
  • add transloco + config + loader as described in docs
  • serve and load the page

Please provide the environment you discovered this bug in

Transloco: 5.0.10
Angular: 17.0.5
Node: 18
Package Manager: npm
OS: macOS

I would like to make a pull request for this bug

Yes ๐Ÿš€

@mackelito You are welcome to open a fix PR ๐Ÿš€
In future issues please provide a reproduction link, it would be great if you can also attach one here ๐Ÿ‘