Skip to content

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

@blackshield6

Description

@blackshield6

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

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions