Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 9
Registered: ‎05-03-2013
My Device: BB simulator
My Carrier: tim
Accepted Solution

Cordova 3.1.0 issue

Hi all ,

I have correctly followed all the steps in this guide:

 

http://cordova.apache.org/docs/en/3.1.0/guide_platforms_blackberry10_index.md.html#BlackBerry%2010%2...

 

 
but when I run the command:
 
Cordova build 
 
I have this error:
[Error : An error occurred while building the blackberry10 project]
 
where am I doing wrong?
 
thanks all.
 
 
Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Cordova 3.1.0 issue

Hi,

 

Try running with the -d flag to get more information about the error.

 

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
New Developer
Posts: 6
Registered: ‎11-01-2013
My Device: z10
My Carrier: Zain

Re: Cordova 3.1.0 issue

I have the same problem, here is the output i got:

 

cordova library for "blackberry10" already exists. No need to download. Continuing.
Generating config.xml from defaults for platform "blackberry10"
Calling plugman.prepare for platform "blackberry10"
Preparing blackberry10 project
Processing configuration changes for plugins.
Iterating over installed plugins: []
Writing out cordova_plugins.js...
Compiling app on platform "blackberry10" via command "cmd" /c C:\Users\lolo\hello\platforms\blackberry10\cordova\build
[BUILD]   Populating application source

child_process.spawn(cmd,[/c, C:\Users\lolo\hello\platforms\blackberry10\cordova\
build]) = 2
Error: An error occurred while building the blackberry10 project.
    at ChildProcess.<anonymous> (C:\Users\lolo\AppData\Roaming\npm\node_modules\
cordova\src\compile.js:65:22)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

 

Can you help me?

Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Cordova 3.1.0 issue

Thanks for the details. We will take a look at this and get back to you shortly.

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
New Developer
Posts: 6
Registered: ‎11-01-2013
My Device: z10
My Carrier: Zain

Re: Cordova 3.1.0 issue

Also please note I am running Windows8 64bit and I installed the latest version of cordova using npm command.

Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Cordova 3.1.0 issue

Hi,

 

Could you try running the build script directly? You may get more clues about why it is failing.

 

C:\Users\lolo\hello\platforms\blackberry10\cordova\build

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
New Developer
Posts: 6
Registered: ‎11-01-2013
My Device: z10
My Carrier: Zain

Re: Cordova 3.1.0 issue

Thank you very much, but my problem was resolved

I did the following:
1- Delete the "cordova" folder inside this path: C:\Users\lolo\AppData\Roaming\npm\node_modules

2- Uninstall "cordova" using "npm" tool.

3- Install "cordova" again using "npm" tool

4- Make sure the "C:\Users\lolo\AppData\Roaming\npm\node_modules\" is empty path.

5- Run the cordova commands using the tools inside the platform folder; example: C:\Users\lolo\hello\platforms\blackberry10\cordova\> build