Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ojet CLI not getting upgraded and problem with oj-bind-for-each

1106277Apr 1 2019 — edited Apr 1 2019

Hi,

Currently I get this result when I run

ojet --version

Oracle JET Command Line Interface, version: 4.0.1

I tried running this:

npm install -g @oracle/ojet-cli@6.0.0

After this I see this in logs :

/usr/local/Cellar/node/7.9.0/lib

└─┬ @oracle/ojet-cli@6.0.0

  └── @oracle/generator-oraclejet@6.0.2

So ideally ojet-cli should have been upgraded to version 6. But if I again do ojet --version I get the same result :

Oracle JET Command Line Interface, version: 4.0.1

Earlier for my other projects my node and npm details were :

node : 10.15.3 (LTS)

npm : 6.4.1

I read that there were few problems with npm v5 and its recommended to have npm v4. So I downgraded my node and npm as :

node : 7.9.0

npm : 4.2.0

After this I tried upgrading my ojet-cli to version 6 as mentioned above but to no avail.

Still it shows v4 and when I create a new Ojet project it created with v4 details only. The new project gets created successfully using

ojet create tempapp --template=navbar

and my package.json file looks like this :

{

  "name": "dataprofile4",

  "version": "1.0.0",

  "description": "An Oracle JavaScript Extension Toolkit(JET) web app",

  "dependencies": {

    "@oracle/oraclejet": "~4.0.0"

  },

  "devDependencies": {

    "grunt": "^1.0.1",

   "@oracle/grunt-oraclejet": "~4.0.0",

    "load-grunt-config": "0.19.2",

    "@oracle/oraclejet-tooling": "~4.0.0",

    "qunit-reporter-junit": "^1.1.1",

    "qunitjs": "^2.3.3"

  },

  "engines": {

    "node": ">=0.10.0"

  },

  "private": true

}

So we can see that its still creating project with version 4.

As a result in my new project I can not use features like ojarraydataprovider.

Even oj-bind-for-each does not work in my project. Eg This code shows nothing : It comes up as blank.

<oj-bind-for-each data='[{"type":"Apple"},{"type":"Orange"}]'>

  <template> <p><oj-bind-text value='[[$current.data.type]]'>

   </oj-bind-text></p>

  </template>

</oj-bind-for-each>

I want to get this oj-bind-for-each to work in my project. Kindly help

Thanks

Comments
Post Details
Added on Apr 1 2019
4 comments
577 views