question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: t_r307 is not a function

See original GitHub issue

I tryed today to switch from l10n to transloco and i started with very basic stuff. I ng add the package, selected the http loader and json format.

Then i copied this from the docu:

<ng-container *transloco="let t">
	<h1>{{ t('hello') }}</h1>
</ng-container>

and i am wondering why i get this error:

ERROR TypeError: t_r307 is not a function
    at MenuComponent_ng_container_0_Template (template.html:6)
    at executeTemplate (core.js:11841)
    at refreshView (core.js:11688)
    at refreshDynamicEmbeddedViews (core.js:13053)
    at refreshView (core.js:11711)
    at refreshComponent (core.js:13128)
    at refreshChildComponents (core.js:11419)
    at refreshView (core.js:11740)
    at refreshComponent (core.js:13128)
    at refreshChildComponents (core.js:11419)

The first entry in console is 🍻 Translation Load Success: en so i think that everything is well configured.

(I dont add any service or something else to the ts file. But if i understand the documentation correct, i dont need any else then to load the directive in the html file)

Before i start trying this package, i ng update the whole project from angular 8 to 9. But everything was working before i start changing translation stuff. So i think the update was working correct.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SvenBudakcommented, Jul 1, 2020

Oh wow 😁 I didn’t know there was a cache for ng add. Thanks for your quick answer! I will bookmark this issue for future projects 😂

0reactions
eluchsingercommented, Nov 19, 2020

I had similar problems. After running ng add @ngneat/transloco (like in the installation guide), my modules changed and some files were added, but transloco was not added to package.json.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: $ is not a function - Stack Overflow
I'm trying to use PinchZoomer, a Jquery plugin on a Wordpress Website but I get this error twice in firebug: TypeError: $ is...
Read more >
getting error "TypeError: this.el_[prop] is not a function" #4694
Description I am using kockoutjs with videojs. The moment i click on the play button it gives me error in browser(chrome) console :...
Read more >
solidity - TypeError: ... is not a function
I'm trying to test my contract functions in Truffle v5+ but getting TypeError: myContract.methods.register is not a function .
Read more >
TypeError is not a function : r/GoogleAppsScript - Reddit
Configuration #1 - When I run the currentAwayTeam function, I get an error in the console that states " TypeError: currentGameRow is not...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found