Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Error when running npm run start in 01-getting-started example #2608

Open
LeSauvage opened this issue Sep 24, 2024 · 0 comments
Open

Bug: Error when running npm run start in 01-getting-started example #2608

LeSauvage opened this issue Sep 24, 2024 · 0 comments

Comments

@LeSauvage
Copy link

LeSauvage commented Sep 24, 2024

Description

After following the steps to clone the repository and install dependencies, running the command npm run start in the 01-getting-started directory results in a MODULE_NOT_FOUND error for the source-map-support/register module.

Steps to Reproduce

  1. Clone the repository:

    git clone [email protected]:necordjs/examples.git
  2. Navigate to the 01-getting-started example directory:

    cd examples/01-getting-started
  3. Install dependencies:

    npm install
  4. Run the project:

    npm run build && npm run start
    or
    npm run start:dev
  5. See the error:

    Error: Cannot find module 'source-map-support/register'
    

Expected Behavior

The project should start successfully without encountering the MODULE_NOT_FOUND error.

Actual Behavior

The project fails to start due to a missing module (source-map-support/register), throwing the following error:

Error: Cannot find module 'source-map-support/register' Node.js v22.9.0

Environment

  • Node.js version: v22.9.0
  • NPM version: Output of 10.8.3
  • Operating System: MAC M1 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64

Additional Context

The error occurs right after running npm run start in the 01-getting-started directory. There were no other errors during the installation of dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant