Continued issues with Dojo build

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Continued issues with Dojo build

Harry Devine

I've been working with Dylan a little bit on my Dojo build, but I'm still having issues that I thought I'd throw out to the list in case someone else has any ideas.  I am trying to build my app against Dojo 1.12.1.  I got it to build once (not sure how), and while I was trying to include the built files into my html, I noticed that the page wasn't rendering.  Examining Firebug showed the following error:


Uncaught TypeError: l.initSyncLoader is not a function
at dojo.js.uncompressed.js:48321
at ra (dojo.js.uncompressed.js:1141)
at ra (dojo.js.uncompressed.js:1260)
at dojo.js.uncompressed.js:1307
at qa (dojo.js.uncompressed.js:1284)
at ia (dojo.js.uncompressed.js:1302)
at Ba (dojo.js.uncompressed.js:840)
at r (dojo.js.uncompressed.js:124)
at (index):43


I found an article online that said they made "dojo-sync-loader": 1 in their profile and that fixed it.  Well, now I can't build at all again.  I keep getting the following error when I build:


[root@VMCentos7 maniacs_build]# . util/buildscripts/build.sh --profile maniacs.js --release
module.js:471
throw err;
^

Error: Cannot find module '/dojo/dojo.js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3


I am totally stumped.  Does anyone have any ideas 1) why the build is failing, and 2) how to tell my html to use the built files once they do build?


Thanks,

Harry


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Continued issues with Dojo build

rcgill
If you reduce your problem to include only the dojo toolkit, one module from each of your packages (it can be a fake module, not your real code), and your profile. Throw it in a github public repo and I'll take a look.

--Rawld

> -----Original Message-----
> From: [hidden email] [mailto:dojo-interest-
> [hidden email]] On Behalf Of Harry Devine
> Sent: Wednesday, February 22, 2017 6:08 AM
> To: [hidden email]
> Subject: [Dojo-interest] Continued issues with Dojo build
>
> I've been working with Dylan a little bit on my Dojo build, but I'm still having
> issues that I thought I'd throw out to the list in case someone else has any
> ideas.  I am trying to build my app against Dojo 1.12.1.  I got it to build once
> (not sure how), and while I was trying to include the built files into my html, I
> noticed that the page wasn't rendering.  Examining Firebug showed the
> following error:
>
>
>
>
>
> Uncaught TypeError: l.initSyncLoader is not a function at
> dojo.js.uncompressed.js:48321 at ra (dojo.js.uncompressed.js:1141) at ra
> (dojo.js.uncompressed.js:1260) at dojo.js.uncompressed.js:1307 at qa
> (dojo.js.uncompressed.js:1284) at ia (dojo.js.uncompressed.js:1302) at Ba
> (dojo.js.uncompressed.js:840) at r (dojo.js.uncompressed.js:124) at (index):43
>
>
>
>
> I found an article online that said they made "dojo-sync-loader": 1 in their
> profile and that fixed it.  Well, now I can't build at all again.  I keep getting the
> following error when I build:
>
>
>
>
> [root@VMCentos7 maniacs_build]# . util/buildscripts/build.sh --profile
> maniacs.js --release
> module.js:471
> throw err;
> ^
>
> Error: Cannot find module '/dojo/dojo.js'
> at Function.Module._resolveFilename (module.js:469:15) at
> Function.Module._load (module.js:417:25) at Module.runMain
> (module.js:604:10) at run (bootstrap_node.js:394:7) at startup
> (bootstrap_node.js:149:9) at bootstrap_node.js:509:3
>
>
>
>
>
> I am totally stumped.  Does anyone have any ideas 1) why the build is failing,
> and 2) how to tell my html to use the built files once they do build?
>
>
>
>
> Thanks,
>
> Harry

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Continued issues with Dojo build

Harry Devine

Thanks for the offer.  I think I have it working now.  I was always calling the build script like this (I'm using CentOS 7.3 Linux):


. util/buildscripts/build.sh --profile maniacs.js --release


When I actually "cd" into that directory, then call the script like this:


./build.sh --profile maniacs.js --release


it builds every time.


I did have some dependency issues that I've been working through, but now I think I have everything working.  The only issue I have at the moment is my mobile build (I have a main build, an 'admin" build for a /admin subfolder on my site/app, and a "mobile" build for a /mobile subfolder). 


My PHP/HTML is calling a function that is built into my build, but I keep getting an error saying that the function doesn't exist.  However, I can see it in both the compressed and uncompressed versions of my built dojo.js.  I can put those files up in a gist if you think that will help.


Thanks,

Harry

On February 23, 2017 at 12:26 PM Rawld Gill <[hidden email]> wrote:

If you reduce your problem to include only the dojo toolkit, one module from each of your packages (it can be a fake module, not your real code), and your profile. Throw it in a github public repo and I'll take a look.

--Rawld

-----Original Message-----
From: [hidden email] [mailto:dojo-interest-
[hidden email]] On Behalf Of Harry Devine
Sent: Wednesday, February 22, 2017 6:08 AM
To: [hidden email]
Subject: [Dojo-interest] Continued issues with Dojo build

I've been working with Dylan a little bit on my Dojo build, but I'm still having
issues that I thought I'd throw out to the list in case someone else has any
ideas. I am trying to build my app against Dojo 1.12.1. I got it to build once
(not sure how), and while I was trying to include the built files into my html, I
noticed that the page wasn't rendering. Examining Firebug showed the
following error:

Uncaught TypeError: l.initSyncLoader is not a function at
dojo.js.uncompressed.js:48321 at ra (dojo.js.uncompressed.js:1141) at ra
(dojo.js.uncompressed.js:1260) at dojo.js.uncompressed.js:1307 at qa
(dojo.js.uncompressed.js:1284) at ia (dojo.js.uncompressed.js:1302) at Ba
(dojo.js.uncompressed.js:840) at r (dojo.js.uncompressed.js:124) at (index):43

I found an article online that said they made "dojo-sync-loader": 1 in their
profile and that fixed it. Well, now I can't build at all again. I keep getting the
following error when I build:

[root@VMCentos7 maniacs_build]# . util/buildscripts/build.sh --profile
maniacs.js --release
module.js:471
throw err;
^

Error: Cannot find module '/dojo/dojo.js'
at Function.Module._resolveFilename (module.js:469:15) at
Function.Module._load (module.js:417:25) at Module.runMain
(module.js:604:10) at run (bootstrap_node.js:394:7) at startup
(bootstrap_node.js:149:9) at bootstrap_node.js:509:3

I am totally stumped. Does anyone have any ideas 1) why the build is failing,
and 2) how to tell my html to use the built files once they do build?

Thanks,

Harry

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Continued issues with Dojo build

rcgill
If you see a function definition in the build, but said function is not defined when you try to call it, then that definition is likely in a cached factory for a particular AMD module that has not been loaded. Ensure the particular module that contains the function is loaded...which will result in the cached factory being executed, which will result in the function of interest being defined.

--Rawld

> -----Original Message-----
> From: [hidden email] [mailto:dojo-interest-
> [hidden email]] On Behalf Of Harry Devine
> Sent: Thursday, February 23, 2017 12:21 PM
> To: [hidden email]
> Subject: Re: [Dojo-interest] Continued issues with Dojo build
>
> Thanks for the offer.  I think I have it working now.  I was always calling the
> build script like this (I'm using CentOS 7.3 Linux):
>
>
>
>
> . util/buildscripts/build.sh --profile maniacs.js --release
>
>
>
>
> When I actually "cd" into that directory, then call the script like this:
>
>
>
>
> ./build.sh --profile maniacs.js --release
>
>
>
>
> it builds every time.
>
>
>
>
> I did have some dependency issues that I've been working through, but now I
> think I have everything working.  The only issue I have at the moment is my
> mobile build (I have a main build, an 'admin" build for a /admin subfolder on
> my site/app, and a "mobile" build for a /mobile subfolder).
>
>
>
>
> My PHP/HTML is calling a function that is built into my build, but I keep
> getting an error saying that the function doesn't exist.  However, I can see it in
> both the compressed and uncompressed versions of my built dojo.js.  I can put
> those files up in a gist if you think that will help.
>
>
>
>
> Thanks,
>
> Harry
>
> On February 23, 2017 at 12:26 PM Rawld Gill <[hidden email]>
> wrote:
>
> If you reduce your problem to include only the dojo toolkit, one
> module from each of your packages (it can be a fake module, not your real
> code), and your profile. Throw it in a github public repo and I'll take a look.
>
> --Rawld
>
> -----Original Message-----
> From: [hidden email]
> [mailto:dojo-interest-
> [hidden email]] On Behalf Of Harry Devine
> Sent: Wednesday, February 22, 2017 6:08 AM
> To: [hidden email]
> Subject: [Dojo-interest] Continued issues with Dojo build
>
> I've been working with Dylan a little bit on my Dojo build, but
> I'm still having
> issues that I thought I'd throw out to the list in case someone
> else has any
> ideas. I am trying to build my app against Dojo 1.12.1. I got it
> to build once
> (not sure how), and while I was trying to include the built files
> into my html, I
> noticed that the page wasn't rendering. Examining Firebug
> showed the
> following error:
>
> Uncaught TypeError: l.initSyncLoader is not a function at
> dojo.js.uncompressed.js:48321 at ra
> (dojo.js.uncompressed.js:1141) at ra
> (dojo.js.uncompressed.js:1260) at
> dojo.js.uncompressed.js:1307 at qa
> (dojo.js.uncompressed.js:1284) at ia
> (dojo.js.uncompressed.js:1302) at Ba
> (dojo.js.uncompressed.js:840) at r
> (dojo.js.uncompressed.js:124) at (index):43
>
> I found an article online that said they made "dojo-sync-
> loader": 1 in their
> profile and that fixed it. Well, now I can't build at all again. I
> keep getting the
> following error when I build:
>
> [root@VMCentos7 maniacs_build]# . util/buildscripts/build.sh
> --profile
> maniacs.js --release
> module.js:471
> throw err;
> ^
>
> Error: Cannot find module '/dojo/dojo.js'
> at Function.Module._resolveFilename (module.js:469:15) at
> Function.Module._load (module.js:417:25) at Module.runMain
> (module.js:604:10) at run (bootstrap_node.js:394:7) at startup
> (bootstrap_node.js:149:9) at bootstrap_node.js:509:3
>
> I am totally stumped. Does anyone have any ideas 1) why the
> build is failing,
> and 2) how to tell my html to use the built files once they do
> build?
>
> Thanks,
>
> Harry
>
> --
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
>
> [hidden email]
> To unsubscribe, visit:
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Continued issues with Dojo build

Harry Devine
I have my main build and admin build working.  My project is at /var/www/html/maniacs.  The build is under /var/www/html/maniacs_build, and each build is set to go to /var/www/html/maniacs/js, each in their own subfolder.  The HTML is set to load the built files from maniacs/js/<subfolder> and it works well.

The issue I have still is my mobile build.  The build is fine and the HTML appears to load it properly, but the presentation doesn't the Dojo mobile "look and feel".  Something must be missing, but I can't seem to find what yet.  

I have my index.php file which uses my mobile build here: https://gist.github.com/HDevine/0de24e271d4961b46d928d567f81b65f

Can anyone take a look and see what I could be missing?

Thanks,
Harry

> On February 23, 2017 at 4:19 PM Rawld Gill <[hidden email]> wrote:
>
>
> If you see a function definition in the build, but said function is not defined when you try to call it, then that definition is likely in a cached factory for a particular AMD module that has not been loaded. Ensure the particular module that contains the function is loaded...which will result in the cached factory being executed, which will result in the function of interest being defined.
>
> --Rawld
>
> > -----Original Message-----
> > From: [hidden email] [mailto:dojo-interest-
> > [hidden email]] On Behalf Of Harry Devine
> > Sent: Thursday, February 23, 2017 12:21 PM
> > To: [hidden email]
> > Subject: Re: [Dojo-interest] Continued issues with Dojo build
> >
> > Thanks for the offer.  I think I have it working now.  I was always calling the
> > build script like this (I'm using CentOS 7.3 Linux):
> >
> >
> >
> >
> > . util/buildscripts/build.sh --profile maniacs.js --release
> >
> >
> >
> >
> > When I actually "cd" into that directory, then call the script like this:
> >
> >
> >
> >
> > ./build.sh --profile maniacs.js --release
> >
> >
> >
> >
> > it builds every time.
> >
> >
> >
> >
> > I did have some dependency issues that I've been working through, but now I
> > think I have everything working.  The only issue I have at the moment is my
> > mobile build (I have a main build, an 'admin" build for a /admin subfolder on
> > my site/app, and a "mobile" build for a /mobile subfolder).
> >
> >
> >
> >
> > My PHP/HTML is calling a function that is built into my build, but I keep
> > getting an error saying that the function doesn't exist.  However, I can see it in
> > both the compressed and uncompressed versions of my built dojo.js.  I can put
> > those files up in a gist if you think that will help.
> >
> >
> >
> >
> > Thanks,
> >
> > Harry
> >
> > On February 23, 2017 at 12:26 PM Rawld Gill <[hidden email]>
> > wrote:
> >
> > If you reduce your problem to include only the dojo toolkit, one
> > module from each of your packages (it can be a fake module, not your real
> > code), and your profile. Throw it in a github public repo and I'll take a look.
> >
> > --Rawld
> >
> > -----Original Message-----
> > From: [hidden email]
> > [mailto:dojo-interest-
> > [hidden email]] On Behalf Of Harry Devine
> > Sent: Wednesday, February 22, 2017 6:08 AM
> > To: [hidden email]
> > Subject: [Dojo-interest] Continued issues with Dojo build
> >
> > I've been working with Dylan a little bit on my Dojo build, but
> > I'm still having
> > issues that I thought I'd throw out to the list in case someone
> > else has any
> > ideas. I am trying to build my app against Dojo 1.12.1. I got it
> > to build once
> > (not sure how), and while I was trying to include the built files
> > into my html, I
> > noticed that the page wasn't rendering. Examining Firebug
> > showed the
> > following error:
> >
> > Uncaught TypeError: l.initSyncLoader is not a function at
> > dojo.js.uncompressed.js:48321 at ra
> > (dojo.js.uncompressed.js:1141) at ra
> > (dojo.js.uncompressed.js:1260) at
> > dojo.js.uncompressed.js:1307 at qa
> > (dojo.js.uncompressed.js:1284) at ia
> > (dojo.js.uncompressed.js:1302) at Ba
> > (dojo.js.uncompressed.js:840) at r
> > (dojo.js.uncompressed.js:124) at (index):43
> >
> > I found an article online that said they made "dojo-sync-
> > loader": 1 in their
> > profile and that fixed it. Well, now I can't build at all again. I
> > keep getting the
> > following error when I build:
> >
> > [root@VMCentos7 maniacs_build]# . util/buildscripts/build.sh
> > --profile
> > maniacs.js --release
> > module.js:471
> > throw err;
> > ^
> >
> > Error: Cannot find module '/dojo/dojo.js'
> > at Function.Module._resolveFilename (module.js:469:15) at
> > Function.Module._load (module.js:417:25) at Module.runMain
> > (module.js:604:10) at run (bootstrap_node.js:394:7) at startup
> > (bootstrap_node.js:149:9) at bootstrap_node.js:509:3
> >
> > I am totally stumped. Does anyone have any ideas 1) why the
> > build is failing,
> > and 2) how to tell my html to use the built files once they do
> > build?
> >
> > Thanks,
> >
> > Harry
> >
> > --
> > Dojo Toolkit: http://dojotoolkit.org/
> > Tutorials: http://dojotoolkit.org/documentation/
> >
> > [hidden email]
> > To unsubscribe, visit:
> > http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
> --
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
>
> [hidden email]
> To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Loading...