-
Notifications
You must be signed in to change notification settings - Fork 1
Description
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-typescriptusing npm. - Attempted to import and use
node-nlp-typescriptin 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:
/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
- Node.js v20.9.0
- npm version: 10.1.0
-"node-nlp-typescript": "^0.1.31",
Attempts to Resolve
- Verified that the
./languagemodule exists within thenode-nlp-typescriptpackage structure. - Deleted
node_modulesandpackage-lock.json, then rannpm installto reinstall packages. - Checked TypeScript configuration for any potential issues with module resolution.
- Searched through existing GitHub issues for
node-nlp-typescriptbut 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.