TypeError: t_r307 is not a function
See original GitHub issueI 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:
- Created 4 years ago
- Comments:14 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 😂
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 topackage.json
.