[CLJS-1820] "No such namespace" warning when referring to JS module namespace without using alias Created: 13/Oct/16 Updated: 30/Oct/16 Resolved: 30/Oct/16
|Reporter:||Maria Geller||Assignee:||David Nolen|
Currently, when requiring a JS module it is not possible to refer to it using the original namespace. For example, the following code will result in a warning:
However, defining an alias for the JS module and using it works fine, for example:
Here is a minimal repo to reproduce this problem: https://github.com/mneise/my-calculator.
|Comment by Maria Geller [ 27/Oct/16 8:23 PM ]|
Added a patch for this.
Since JS modules are loaded using the new name created by the Google Closure compiler during module conversion, we always need to add an alias from the name given in the :provides compiler option to the new name.
|Comment by David Nolen [ 30/Oct/16 5:12 AM ]|