Re: Problems with dependency routing

27 views
Skip to first unread message

Caolan McMahon

unread,
Apr 14, 2013, 5:03:40 AM4/14/13
to ja...@googlegroups.com
Hi Prajwal,

At a glance it looks like you've configured it correctly, it's
possible this is a bug in Jam. Please can you create an issue on
GitHub?
https://github.com/caolan/jam/issues/new

Thanks!

Caolan

On 13 April 2013 18:22, Prajwal Manjunath <prajw...@gmail.com> wrote:
> Hi,
>
> I'm having trouble getting module dependencies to load due to wrong URLs
> being generated.
>
> My config is like this:
> packageDir: "staging/scripts/lib"
> baseUrl: "staging"
>
> my dir structure is like this:
> staging/
> -- index.html
> -- scripts/
> ---- app.js
> ---- lib/
> ------ require.js
>
> My require script call is like this:
> script(src="/scripts/lib/require.js", data-main="scripts/app")
>
> app.js does a simple require ("backbone", function(Backbone) { ... } )
> thingy.
>
> The problem is this looks for backbone in "scripts/scripts/lib/backbone".
>
> I fixed this by changing baseUrl to "staging/scripts" and it successfully
> finds backbone. But then it has trouble routing deps:
> It looks for underscore in "scripts/underscore" instead of
> "scripts/lib/underscore". What am I doing wrong?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "jamjs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jamjs+un...@googlegroups.com.
> To post to this group, send an email to ja...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/jamjs/-/NvprR_p66OwJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages