Author Topic: [Solved] import js file - Invalid import qualifier ID  (Read 2789 times)

0 Members and 1 Guest are viewing this topic.

Offline pLurchi

  • Newbie
  • *
  • Posts: 22
  • me
    • View Profile
  • Phone model: Asus Padfone 2
[Solved] import js file - Invalid import qualifier ID
« on: February 18, 2015, 02:35:52 PM »
Hi folks,

I'm trying to import a javascript file in Sailfish SDK like in the calculator example. But while Launch process there is the following Application output:
Code: [Select]
[W] unknown:35 - file:///opt/sdk/jsTry/usr/share/jsTry/qml/jsTry.qml:35:28: Invalid import qualifier ID
     import "content/my2.js" as jsEngine
 
                                ^
    My steps done so far:
    • I created a new project (name: jsTry). This is working.
    • I added  a js file (name: my2.js) with "Add New.." wizard in "jsTry/qml/content"
    • I wrote the following code in "jsTry.qml"
Code: [Select]
import "content"
import "content/my2.js" as jsEngine

Have I missed a step?

Thanks for help
pLurchi

edit: Marked as solved.
« Last Edit: February 19, 2015, 07:53:51 AM by pLurchi »
Time to change? Jolla ordered! Jolla setting up ...

Offline pLurchi

  • Newbie
  • *
  • Posts: 22
  • me
    • View Profile
  • Phone model: Asus Padfone 2
Re: import js file - Invalid import qualifier ID
« Reply #1 on: February 19, 2015, 07:51:49 AM »
Hi,

I found the error. I think i coded to much in vb.net the last weeks...

It must start with a capital letter:
Code: [Select]
import "content/my2.js" as JsEngine
cu
Time to change? Jolla ordered! Jolla setting up ...