nlp.js from axa-group in typescript š. NLP library for building bots š¤, with entity extraction, sentiment analysis, automatic language identification, and more.
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
Installed node-nlp-typescript using npm.
Attempted to import and use node-nlp-typescript in my NestJS service.
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:
I am encountering a runtime error when attempting to use the
node-nlp-typescript
package in my NestJS application. The error message isError: 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 thenode-nlp-typescript
package.Steps to Reproduce
node-nlp-typescript
using npm.node-nlp-typescript
in my NestJS service.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
./language
module exists within thenode-nlp-typescript
package structure.node_modules
andpackage-lock.json
, then rannpm install
to reinstall packages.node-nlp-typescript
but didn't find any related to this specific problem.I would greatly appreciate any guidance on resolving this issue, as it is currently blocking development. Thank you in advance for your assistance.