Comments (14)
ok I can't actually replicate the issue but have talked to @jdanyow to update aurelia-plunker to include it so you can easily create a sample. Stay tuned will reply here once its updated
from i18n.
@valichek / @zewa666 sorry for the delay- the plunker has been updated with the latest aurelia bits and now includes the aurelia-i18n plugin.
from i18n.
I have the same issue, I have trouble to pinpoint where the actual problem is and are thus unable to show it in plunkr.
Unhandled promise rejection TypeError: Cannot read property 'dispose' of undefined
at TCustomAttribute.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/t.js?bust=1448609338856:118:26)
at Controller.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:2724:20)
at View.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:841:26)
at ViewSlot.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:1137:21)
at View.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:846:23)
at ViewFactory.returnViewToCache (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:1731:14)
at View.returnToCache (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:753:24)
at removeAction (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:1246:25)
at ViewSlot.removeAll (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:1259:7)
at http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:3653:53(anonymous function) @ :1111/jspm_packages/npm/[email protected]/modules/es6.promise.js?bust=1448609338856:122
:1111/jspm_packages/npm/[email protected]/modules/es6.promise.js?bust=1448609338856:122 Unhandled promise rejection TypeError: Cannot read property 'dispose' of undefined(…)(anonymous function) @ :1111/jspm_packages/npm/[email protected]/modules/es6.promise.js?bust=1448609338856:122
from i18n.
hey we currently have weird issues with the show.binding if used together with the animator-css. May I ask you guys to test if the error still happens if you remove the animator-css plugin?
from i18n.
I have aurelia-animator-css
plugin disabled
from i18n.
sry I seem to be doing something wrong, still can't replicate the issue. @valichek may I ask you to use the updated aurelia plunker to create an example depicting the issue?
from i18n.
@zewa666 will try
from i18n.
I wonder if there's a scenario where bind
then unbind
is called in the same task queue flush. If that were to happen, unbind
would be called before this line is evaluated.
Maybe this could be reproduced by putting a t
custom attribute on a element that has if.bind="show"
and then executing this.show = !this.show
a few times in the view-model.
It might be good to clear these timeouts in unbind
:
- https://github.com/aurelia/i18n/blob/master/src/t.js#L49
- https://github.com/aurelia/i18n/blob/master/src/t.js#L61
Otherwise there is the potential for the deferred binding code to execute after unbind is called.
from i18n.
Any progress with this? You should clear these timeouts during unbind
and run dispose()
of subscription only if really subscribed.
from i18n.
@EisenbergEffect could you create a new release and @valichek check it afterwards? I guess @Mordred's PR should fix that
from i18n.
We will have some new releases this week. Hopefully tomorrow or Wednesday. I'm waiting on a couple of final things to come in so we can aggregate the patches and release details.
from i18n.
@valichek has this been fixed with the recent release?
from i18n.
yes, error is gone
from i18n.
Allrighty 👍
from i18n.
Related Issues (20)
- Options on Backend init are overloaded with the default values. HOT 3
- Bundle doc not up-to-date HOT 2
- The default backend loader doesn't work with cli+bundler+systemjs HOT 5
- Path in typings.json no longer targeting aurelia-i18n.d.ts HOT 3
- i18next 'has no exported member' errors HOT 6
- Namespace 'i18next' has no exported member 'TranslationFunction' HOT 14
- Documentation suggestion HOT 2
- T attribute inside a repeater refresh the whole table HOT 4
- i18n params attribute doesn't work in globally registered custom elements HOT 6
- Can
- i18n via t.bind fails to clear translated string when key becomes undefined HOT 2
- TypeScript compile error in typings for v3.1.2 HOT 22
- aurelia-i18n.d.ts(6,10): error TS2614: Module '"../../i18next"' has no exported member 'i18next' HOT 3
- Can't return arrays in tr() anymore? HOT 7
- RelativeTime prevents BackendLoader from downloading resources for fallback language HOT 2
- Vulnerabilities in current version of i18next HOT 2
- Sonatype reports vulnerabilities in i18next version used by aurelia-i18n HOT 3
- keySeparator: '_', conflicts with the RelativeTime translations
- I18N.tr has wrong options overload type
- i18next-xhr-backend is deprecated HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18n.