Closed vegarringdal closed 7 years ago
Where did you get that 'original' then.
Mine is from https://github.com/aurelia/skeleton-navigation/blob/master/skeleton-typescript-webpack/src/users.ts
When using typescript the idea is to use the async/await pattern.
There is also a bug in there. System.Import
should be require
to be able to run in IE11.
At the skeleton-typescript 😄 https://github.com/aurelia/skeleton-navigation/blob/master/skeleton-typescript/src/users.ts
Actually when testing newest fuse on my test repo it somehow breaks and loader fails somehow. Are you having issues like this on v 121 ? but 117 works
@nchanged Have you done anything on fuse how it bundles some parts lately ?
From what I can tell it happens in v118, user.html is missing locals function
@nchanged never mind, must be something Im doing, this seed works fine
Ill do more testing and try and figure out why my is breaking after v118, I have the routes in own folder, maybe that is what breaks it, also bundle is in folder
@arjendeblok
Found my bug in the end, for some reason having variable "http" in constructor failed. Nice to know about incase you copy code from one of the other skeletons :-)
Now Ive updated this to use async await too: https://github.com/vegarringdal/aurelia-fusebox-test/blob/master/src/routes/users.ts#L19-L21
I think that the issue was that you designated the method as async and did not use await. If you did not set async in the method then you can use the old promises way with .then()
No the "http" issue was a fusebox bug, got fixed in 122.preview4, there had been a similar with "https" so @nchange knew what to do.
yeah it's all fixed in 122-preview.4
@arjendeblok
Why not keep it as possible to original ? Any special reasons?
fusebox-seed:
Original:
Original works fine in ie11 too https://vegarringdal.github.io/aurelia-fusebox-test/