Giter Site home page Giter Site logo

wikifolio-example's People

Contributors

dependabot[bot] avatar quantomas avatar riennevaplus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

quantomas

wikifolio-example's Issues

Some basic question regarding yarn: passing arguments

Hello,

it's me again with another basic question : )

Currently, running

yarn start

runs a process of index.ts, which is prompting for email and password input from the console.

Would it be possible to pass these parameters (and possibly others, like wikifolio ID) via flags to the call, rather than being prompted to enter them? Something along the lines of

yarn start --email [email protected] --password verySecretPassword

would be convenient to have (with an optional keyboard prompt if no flags are passed).
However, since I don't know enough of yarn and typescript I'm not certain if and how this would be feasible.

Cheers

Error when executing the example

Good day to you, Sir!

When I try to run the example, I get an error. Please see the console log below:

PS C:\git\wikifolio-example> yarn start --trace-warnings
yarn run v1.22.5
$ tsc && node ./dist --trace-warnings
Your credentials will not be stored.
√ Wikifolio email ... [email protected]
√ Wikifolio password ... ***********
(node:8484) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '1' of null
    at Wikifolio.<anonymous> (C:\git\wikifolio-example\node_modules\wikifolio\dist\models\Wikifolio.js:292:107)
    at step (C:\git\wikifolio-example\node_modules\wikifolio\dist\models\Wikifolio.js:44:23)
    at Object.next (C:\git\wikifolio-example\node_modules\wikifolio\dist\models\Wikifolio.js:25:53)
    at fulfilled (C:\git\wikifolio-example\node_modules\wikifolio\dist\models\Wikifolio.js:16:58)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:8484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Done in 24.13s.

I am not a JavaScript or TypeScript developer, so I have very limited debugging capabilities.
Any help on this issue is very much appreciated.

Best Regards!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.