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!

[MOOC] ojet serve SyntaxError UnexpectedToken

guilhermesobreiraNov 7 2019 — edited Nov 12 2019

Hi everyone,

I am new on this framework, just learning now...

In my first steps, I am already facing the error below (highlighted in red).

Could anyone please help me?

MacBook-Air-de-Guilherme:~ gssilva$ ojet create appteste1 --template=navdrawer

Processing template: navdrawer

Your app structure is generated. Continuing with library install.

Writing:

oraclejetconfig.json

oraclejetconfig.json file exists. Checking config.

Running after_app_create hook.

Your app is ready! Change to your new app directory 'appteste1' and try 'ojet build' and 'ojet serve'.

MacBook-Air-de-Guilherme:~ gssilva$ cd appteste1

MacBook-Air-de-Guilherme:appteste1 gssilva$ ojet serve

/Users/gssilva/appteste1/node_modules/@oracle/oraclejet-tooling/lib/addtypescript.js:30

          ...process.env,

          ^^^

SyntaxError: Unexpected token ...

    at createScript (vm.js:53:10)

    at Object.runInThisContext (vm.js:95:10)

    at Module._compile (module.js:543:28)

    at Object.Module._extensions..js (module.js:580:10)

    at Module.load (module.js:488:32)

    at tryModuleLoad (module.js:447:12)

    at Function.Module._load (module.js:439:3)

    at Module.require (module.js:498:17)

    at require (internal/module.js:20:19)

    at __dirname.forEach (/Users/gssilva/appteste1/node_modules/@oracle/oraclejet-tooling/oraclejet-tooling.js:39:16)

MacBook-Air-de-Guilherme:appteste1 gssilva$

Comments
Post Details
Added on Nov 7 2019
2 comments
159 views