Are you invoking the require from code running at lib/ itself? Maybe you
meant to require /lib/docs.xqy instead?

Cheers,
Geert

On 4/5/16, 10:28 AM, "[email protected] on behalf of
Florent Georges" <[email protected] on behalf of
[email protected]> wrote:

>Hi,
>
>In JavaScript, I have a module importing (trying to import) an XQuery
>module:
>
>    var d = require('lib/docs.xqy');
>
>But that throws the error: "XDMP-MODNOTFOUND: var d =
>require('lib/docs.xqy'); -- Module lib/lib/docs.xqy not found".
>
>See the "lib/lib/docs.xqy"? (with double "lib/")
>
>If I change it to "require('docs.xqy')", it complains (correctly) that
>"Module docs.xqy not found".
>
>Did I miss anything?
>
>Regards,
>
>-- 
>Florent Georges
>http://fgeorges.org/
>http://h2oconsulting.be/
>_______________________________________________
>General mailing list
>[email protected]
>Manage your subscription at:
>http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to