-
Notifications
You must be signed in to change notification settings - Fork 122
-
Notifications
You must be signed in to change notification settings - Fork 122
__moduleName is empty (undefined) #635
Comments
Does it work when dynamically loading? If so what transpiler configuration are you using? |
Hi Guy I am transpiling from Typescript (module:system) everything works file untill I bundling using systemjs.builder |
__moduleName builds are only supported as of TypeScript 1.8, make sure you are using at least that version? Also __moduleName is only supported for ES modules. |
Hi Guy __moduleName works fine during development systemjs fill it with the right data the issue is when I package the javascript files with systemjs bulder, then the value is empty, as I said before I used encodeNames: false to prevent the name to by mangled up but not luck. Any idea? |
As mentioned, this is determined by the system you use to build your JS, even if it did work in the browser. I'd suggest checking your transpilation options and confirming that it is a system module format output on TypeScript 1.8 or greater. |
@acostaf @guybedford Same issue. I'm using typescript 1.8.10. I had to revert transpilation to commonjs and module.id until the issue is resolved. |
Do you guys have a repro case? Builder should handle |
This should fix it. |
Yes this was a bug in SFX... fix coming in this release. |
Released in 0.15.24. |
HI Team
buildStatic js using systemjs set __moduleName as empty, I have already used encodeNames: false but nothing
The text was updated successfully, but these errors were encountered: