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:
/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
./language module exists within the node-nlp-typescript package structure.
- Deleted
node_modules and package-lock.json, then ran npm install to reinstall packages.
- Checked TypeScript configuration for any potential issues with module resolution.
- Searched through existing GitHub issues for
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.
I am encountering a runtime error when attempting to use the
node-nlp-typescriptpackage 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./languagemodule within thenode-nlp-typescriptpackage.Steps to Reproduce
node-nlp-typescriptusing npm.node-nlp-typescriptin my NestJS service.Expected Behavior
The package should correctly resolve and import all internal dependencies, including the
./languagemodule, 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-nlp-typescript": "^0.1.31",
Attempts to Resolve
./languagemodule exists within thenode-nlp-typescriptpackage structure.node_modulesandpackage-lock.json, then rannpm installto reinstall packages.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.