Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run dockStart #1317

Open
ceoxantek opened this issue May 23, 2023 · 0 comments
Open

Can't run dockStart #1317

ceoxantek opened this issue May 23, 2023 · 0 comments

Comments

@ceoxantek
Copy link

Describe the bug
After loading npm i @nlpjs/basic, I tried running sample code, but getting error at first line

To Reproduce
Steps to reproduce the behavior:

  1. npm i @nlpjs/basic
  2. run the follwing code:
    const { dockStart } = require('@nlpjs/basic');

(async () => {
const dock = await dockStart({ use: ['Basic']});

Expected behavior
No error
Get the follwing result:
node index.js (node:15564) [PINODEP008] PinoWarning: prettyPrint is deprecated, look at https://github.com/pinojs/pino-pretty for alternatives. (Use node --trace-warnings ... to show where the warning was created) undefined:20 ... ^ SyntaxError: Unexpected token . in JSON at position 577 at JSON.parse () at Nlp.addCorpus (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/nlp/src/nlp.js:494:54) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Nlp.addCorpora (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/nlp/src/nlp.js:316:11) at async Nlp.start (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/nlp/src/nlp.js:136:7) at async Container.start (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/core/src/container.js:524:9) at async Dock.createContainer (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/core-loader/src/dock.js:80:7) at async Dock.terraform (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/core-loader/src/dock.js:114:30) at async dockStart (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/core-loader/src/index.js:59:3) at async /var/lib/asterisk/agi-bin/index.js:4:16 Node.js v18.16.0

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: debian
  • Browser none
  • Package version4.26.1
  • Node version18.16.0

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant