This project is archived. Its data is read-only.
Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now

Cannot generate route documentation

Summary

The documentation for routes cannot be generated as described in the documentation because of an error which occurs.

Steps to reproduce

Follow the part in the README of the project under the title Generate documentation for routes:

... use the following command in the root directory of your StAppsCore

node --require ts-node/register node_modules/@openstapps/core-tools/src/cli.ts routes PATH/TO/ROUTES.md

What is the current bug behavior?

Error:

home/jkrunic/Desktop/OpenStApps/core/node_modules/@openstapps/core-tools/src/cli.ts:15
import * as commander from 'commander';
       ^

SyntaxError: Unexpected token *
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/home/jkrunic/Desktop/OpenStApps/core/node_modules/ts-node/src/index.ts:405:14)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)

What is the expected correct behavior?

Should generate route documentation.

Possible fixes

???

Edited Feb 15, 2019 by Jovan Krunić
Assignee Loading
Time tracking Loading