Skip to content

Cannot find module 'dist/main' after upgrading to 10.1.12 #2247

@michael-land

Description

@michael-land

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

❯ pnpm dev

> @app/[email protected] dev /Users/.../apps/app-scheduler
> nest start --watch

>  SWC  Running...
Successfully compiled: 3 files with swc (6.47ms)

 Error  Cannot find module 'dist/main'
Require stack:
- /Users/.../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@nestjs/cli/actions/start.action.js
- /Users/.../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@nestjs/cli/actions/index.js
- /Users/.../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@nestjs/cli/commands/command.loader.js
- /Users/.../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@nestjs/cli/commands/index.js
- /Users/.../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@nestjs/cli/bin/nest.js

Watching for file changes.

Minimum reproduction code

Steps to reproduce

No response

Expected behavior

no error

Package version

10.1.12

NestJS version

No response

Node.js version

No response

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions