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

Project does not run #101

Open
alper opened this issue Sep 22, 2023 · 0 comments
Open

Project does not run #101

alper opened this issue Sep 22, 2023 · 0 comments

Comments

@alper
Copy link

alper commented Sep 22, 2023

I did an install and then a run and turns out that it is entirely broken.

❯ pnpm run start                                                                                    [🕙 22 10:54] 

> [email protected] start /Users/alper/Code/contrib/nestjs-realworld-example-app
> node index.js


/Users/alper/Code/contrib/nestjs-realworld-example-app/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:434
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
src/article/article.controller.ts:2:25 - error TS2307: Cannot find module 'express' or its corresponding type declarations.

2 import { Request } from 'express';
                          ~~~~~~~~~

    at createTSError (/Users/alper/Code/contrib/nestjs-realworld-example-app/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:434:12)
    at reportTSError (/Users/alper/Code/contrib/nestjs-realworld-example-app/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:438:19)
    at getOutput (/Users/alper/Code/contrib/nestjs-realworld-example-app/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:578:36)
    at Object.compile (/Users/alper/Code/contrib/nestjs-realworld-example-app/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:775:32)
    at Module.m._compile (/Users/alper/Code/contrib/nestjs-realworld-example-app/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:858:43)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Object.require.extensions.<computed> [as .ts] (/Users/alper/Code/contrib/nestjs-realworld-example-app/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:861:12)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Function.Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
 ELIFECYCLE  Command failed with exit code 1.

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