import {awk} from 'test-awk/test';
/**
*
* @param {string} param
*/
export default function testSymbol(param) {
console.log('This is a test from the test module - param: ', param);
awk();}The compilation will fail with :project/web/js/modules/test.js:1: ERROR - Failed to load module "test-awk/test"
import {awk} from 'test-awk/test';
If I add test-awk/test.js to the list of files this works fine.My problem is that I need to `import {Observable} from 'rxjs/RxJS';` - I cannot add the `node_modules/rxjs` tree to the list of files built with closure (there's code in there that closure doesn't like - including JSDoc annotations). I'm fine with needing to have an external bundler or similar to handle this code at runtime, but I need to import this ES6 module into code that in turn provides a typed interface to other code in my closure compiled app.Am I missing something here? Or do I *have* to supply all the code to closure - even when using `import` etc.?ThanksAndrew 8-)
--
---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/432a39a7-9b14-4039-ac94-36665871f666%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The compiler is designed to compile all your code into a single binary. If you have code that you don't want compiled in, you can use an externs file to define the interface to that code, but we don't currently have a way to write an externs file for an ES6 module, so that imports of that module are left alone.
If the problem is just jsdoc that the compiler doesn't like, you could try the --hide_warnings_for=node_modules/rxjs flag.
--
---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/1e2d5691-8b1a-409b-a45e-15ec246df3de%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-discuss+unsub...@googlegroups.com.
I have a design document for this and plan on working it, but not before I handle a module name registry.
--
---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/e4b3be00-b464-4553-a6d8-8dc38e7d201f%40googlegroups.com.
Are you using the --hide_warnings_for flag?
--
---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/e4b3be00-b464-4553-a6d8-8dc38e7d201f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Chad Killingsworth | Banno | Senior Software Engineer
Jack Henry & Associates, Inc.
On Apr 29, 2016, at 3:41 PM, Chad Killingsworth <chad.kill...@banno.com> wrote:Are you using the --hide_warnings_for flag?
You received this message because you are subscribed to a topic in the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/closure-compiler-discuss/OqTHnUxslmY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/CABwpjCvHXyp%2Bs3K05euJmLupV%2BWZQs71dD2eGq-BK2YVgfZ0Qg%40mail.gmail.com.
On Apr 29, 2016, at 3:49 PM, Andrew Kimpton <akim...@onshape.com> wrote:Yep - I just tried turning that on and I now get :On Apr 29, 2016, at 3:41 PM, Chad Killingsworth <chad.kill...@banno.com> wrote:Are you using the --hide_warnings_for flag?
node_modules/rxjs-es/Observable.js:3: ERROR - Failed to load module "symbol-observable"import * as $$observable from 'symbol-observable';^
import {Observable} from 'rxjs/Observable'; import 'rxjs/add/operator/map'; Observable.of(1,2,3).map(x => x + '!!!'); // etc