Leoglme / node-nlp-typescript

nlp.js from axa-group in typescript šŸš€. NLP library for building bots šŸ¤–, with entity extraction, sentiment analysis, automatic language identification, and more.
https://www.npmjs.com/package/node-nlp-typescript
MIT License
15 stars 1 forks source link

Error: Cannot find module './language' #2

Open blackshield6 opened 7 months ago

blackshield6 commented 7 months ago

I am encountering a runtime error when attempting to use the node-nlp-typescript package in my NestJS application. The error message is Error: Cannot find module './language', which prevents my application from starting. This issue seems to be related to the module resolution for the ./language module within the node-nlp-typescript package.

Steps to Reproduce

  1. Installed node-nlp-typescript using npm.
  2. Attempted to import and use node-nlp-typescript in my NestJS service.
  3. On application start, Node.js throws an error indicating it cannot find the module './language'.

Expected Behavior

The package should correctly resolve and import all internal dependencies, including the ./language module, without throwing runtime errors.

Actual Behavior

The application fails to start with the following error message: Error: Cannot find module './language' Require stack:

/path/to/project/node_modules/node-nlp-typescript/dist/index.js /path/to/project/dist/src/my-service-using-node-nlp.js markdown Copy code

Environment

Attempts to Resolve

I would greatly appreciate any guidance on resolving this issue, as it is currently blocking development. Thank you in advance for your assistance.

pedro-machado98 commented 5 months ago

I have the same issue, ive tryed all this things too and changing the module import path without sucess.

Have you found a solution?