You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The codebase from Aurelia makes extensive use of System api. At the same time, it's supposed to work without it, e.g. in a requirejs runtime. To that effect, aurelia-loader-default installs a very thin polyfill for System when it's missing (basically delegating to require).
The problem is that aurelia-bootstrapper loads aurelia-loader-default dynamically, with a call to System.import, which is of course impossible at that point.
It's a kind of chicken-and-egg problem. I don't know what was the thinking behind dynamically loading aurelia-loader-default. It seems to me the easiest fix is to import it statically.
I worked around this problem by making sure that aurelia-loader-default is loaded before aurelia-bootstrapper is, but that feels wrong. It feels like a magic incantation whereas it should be a basic dependency of the bootstrapper.
The text was updated successfully, but these errors were encountered:
The codebase from Aurelia makes extensive use of
System
api. At the same time, it's supposed to work without it, e.g. in arequirejs
runtime. To that effect,aurelia-loader-default
installs a very thin polyfill forSystem
when it's missing (basically delegating torequire
).The problem is that
aurelia-bootstrapper
loadsaurelia-loader-default
dynamically, with a call toSystem.import
, which is of course impossible at that point.It's a kind of chicken-and-egg problem. I don't know what was the thinking behind dynamically loading
aurelia-loader-default
. It seems to me the easiest fix is to import it statically.I worked around this problem by making sure that
aurelia-loader-default
is loaded beforeaurelia-bootstrapper
is, but that feels wrong. It feels like a magic incantation whereas it should be a basic dependency of the bootstrapper.The text was updated successfully, but these errors were encountered: