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
Lets say i have tiny library file in the es5 system/register format named 'foo.js'. It contains two modules. The first is called 'foo', the second is called 'foo/bar'.
The Javascript Code inside foo.js is organized as follows:
Uncaught Error: Multiple anonymous System.register calls in module http://localhost:8383/lib/foo.js. If loading a bundle, ensure all the System.register calls are named.
(anonymous function)@system.js:2916
loader@system.js:3591
loader.amdDefine@system.js:4075
complete@system.js:2716
So i wonder what would be the problem. All modules in foo.js are obviously named.
// anonymous registerif(!entry.name||load&&entry.name==load.name){if(!curMeta)thrownewTypeError('Unexpected anonymous System.register call.');if(curMeta.entry){if(curMeta.format=='register')thrownewError('Multiple anonymous System.register calls in module '+load.name+'. If loading a bundle, ensure all the System.register calls are named.');elsethrownewError('Module '+load.name+' interpreted as '+curMeta.format+' module format, but called System.register.');}if(!curMeta.format)curMeta.format='register';curMeta.entry=entry;}
The text was updated successfully, but these errors were encountered:
I think I may have made this case work in cb71254, as in theory it shouldn't be giving this error... but yes it is an edge case when the bundle name is the defined name inside the bundle.
If you can test it out though when the next release comes, do let me know if that helps.... I can post a note here when that happens.
Lets say i have tiny library file in the es5 system/register format named 'foo.js'. It contains two modules. The first is called 'foo', the second is called 'foo/bar'.
The Javascript Code inside foo.js is organized as follows:
To use this library in a secondary project i wrote the following config.js so that both modules will be loaded from the same file:
If i now try to load a class from 'foo/bar' like
then i get the following error message:
So i wonder what would be the problem. All modules in foo.js are obviously named.
The text was updated successfully, but these errors were encountered: