Can't run dockStart
ceoxantek opened this issue · comments
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:
- npm i @nlpjs/basic
- 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.