-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: this.backend[fcName] is not a function #112
Comments
It seems following docs caused this issue. Changed from |
...or rather the issue seemed to be that the readme file incorrectly suggested us TypeScript users:
...which doesn't seem to be the case (at least not in VS2015 with TypeScript 1.8.6.0). If it's imported as:
...it seems to work just fine. |
Oh man, TypeScript is driving me nuts. We have currently about 3 issues regarding the same topic, so I don't clearly see whats the way forward. I agree, the one time I tested it with TypeScript myself the proposal of @Souldrinker worked. I guess it might be related to the TypeScript version installed. |
I'm using TS 1.8, perhaps the docs need to mention the TS syntax options for TS versions that will handle it differently? |
As I mentioned in the referenced issue I think it's not only a TS version issue but also a question of whether you're outputting to ES5 or ES6 and not only what TS version you're using. That is if you output to ES6 you should use the normal ES6 syntax, but if you're outputting to ES5 you have to either do If I get it correctly pre-TS1.8 (and also in 1.8 if outputting to ES5) you have to use one of the two old ways of doing it, while in TS1.8+ targetting ES6+ things works as expected (=like in ES6). |
@Souldrinker what would really help is if you can provide a PR updating the README and as now just simply describe the different scenarios, so that people using whichever version know what the root cause is and therefore can adapt appropriately. |
Well, I'm not really sure what to type to explain this in a good way, but maybe it would be enough if you just change the comment in point 7 to something like:
|
Closing this as a dupe. |
I'm unable to get
aurelia-i18n@0.5.3
working using JSPM. I'm following the very latest docs, it fails during bootstrapping phase:The code snippet from the eval script where its failing is here:
My
main.ts
file plugin load:JSPM dependencies:
The text was updated successfully, but these errors were encountered: