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!

Getting below error when trying to run ojet serve command after installing Node js

User_7OEWFApr 5 2022

error1.PNG

Comments

The version of JET CLI does not match what you are using with your JET project. They must match starting with JET v12.

User_7OEWF

How to check the version of jet cli used in my project..I checked the ojet -- version in command line it was 12.0.0

Venkata Rahul S

The package.json in the project source directory contains a list of dependencies among which, the version of OJet is also listed

Venkata Rahul S

The core question remains however. How does one migrate from a previous version of OJet to the current?
Here is the migration section from the Developer Guide
--Rahul

John JB Brock-Oracle

The Migration chapter of the Developers Guide will help you with migration
Developing Oracle JET Apps Using MVVM Architecture (0 Bytes)You are correct in how you check the version of the CLI (ojet --version). Looking at the code of your project itself, you can look for the @oracle/oraclejet dependency line in the package.json file to get the major and minor release numbers. If there is a package-lock.json file in the project, I would recommend deleting that and letting it be regenerated with the new versions.
Depending on what version you are migrating from, you may have multiple dependencies in the path_mappings.json file that need to be updated as well, so don't miss that step in the Migration guide.

1 - 5

Post Details

Added on Apr 5 2022
5 comments
382 views