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

Native Development

Reply
Developer
AlexXF
Posts: 323
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha

QML Editor (module bb.platform is not installed)

When I try using the QML Design Mode in the QNX Momentics IDE it always shows an error message. For example the design mode view shows the error message:

 

Problem loading qml file:

module "bb.platform" is not installed

 

How do I get the design mode to work. Or is this a bug in the QNX Momentics IDE. I am using the latest version 10.0.9 beta 3 of the BlackBerry 10 Native SDK for MacOS.

 

MacOS X 10.8.2

Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: QML Editor (module bb.platform is not installed)

We need to make this a sticky as you're the 3rd person to post this.

 

Steps to solve;

 

 - Uninstall SDK and all previous remnants

 - re-install latest SDK

 

Should work now.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30

Re: QML Editor (module bb.platform is not installed)

Those steps did not work for me.

I still get "module 'com.rim.example.custom' is not installed".
Developer
Developer
klz
Posts: 132
Registered: ‎08-24-2011
My Device: Z10 LE + Playbook

Re: QML Editor (module bb.platform is not installed)

Unistalling all installed SDK is not a good idea since someone could also develops for PlayBook. I'm getting the same problem. Will let you know once I fix it.

 

Thank you!
----------------------------
My Apps: Alchemy Game | Image Resizer | Jam! | Traffic Signs: USA | Radio Record
My Blog: http://bb10pro.com
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30

Re: QML Editor (module bb.platform is not installed)

Since my original posting in this thread, I have come to learn that this is a bug. The QML editor will work fine as long as you don't include any custom qmlRegisterType that you may define in the cpp. This is why some sample apps work with the editor and others don't.

Developer
Developer
klz
Posts: 132
Registered: ‎08-24-2011
My Device: Z10 LE + Playbook

Re: QML Editor (module bb.platform is not installed)

Does it mean that if I just build a sample and deploy on device it would work properly?

 

Thanks! 

Thank you!
----------------------------
My Apps: Alchemy Game | Image Resizer | Jam! | Traffic Signs: USA | Radio Record
My Blog: http://bb10pro.com
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30

Re: QML Editor (module bb.platform is not installed)

Assuming there are no errors, yes. Just because a view doesn't render in QML preview doesn't mean there is anything necessarily wrong with it. There may very well be errors, but just read the error and if it mentions the custom type not being installed, then it should be safe to ignore.

 

To test, deploy it to a simulator or device. The main qml file of my app doesn't render in the preview but works fine once deployed.

Developer
Developer
klz
Posts: 132
Registered: ‎08-24-2011
My Device: Z10 LE + Playbook

Re: QML Editor (module bb.platform is not installed)

Thanks! A sample works well on device.

Thank you!
----------------------------
My Apps: Alchemy Game | Image Resizer | Jam! | Traffic Signs: USA | Radio Record
My Blog: http://bb10pro.com
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

Re: QML Editor (module bb.platform is not installed)

why are you using bb.platform? The qml import for cascades is
import bb.cascades 1.0
Like all of my posts