Skip to content

Cannot find modules and type definition files #8

Description

@ajsb85
$ npm test

> typescript-node-api@1.0.1 test /Users/username/GitHub/typescript-node-api
> mocha --reporter spec --compilers ts:ts-node/register 'test/**/*.test.ts'


/Users/username/GitHub/typescript-node-api/node_modules/ts-node/src/index.ts:312
          throw new TSError(formatDiagnostics(diagnosticList, cwd, ts, lineOffset))
                ^
TSError: ? Unable to compile TypeScript
Cannot find type definition file for 'body-parser'. (2688)
Cannot find type definition file for 'chai'. (2688)
Cannot find type definition file for 'chai-http'. (2688)
Cannot find type definition file for 'debug'. (2688)
Cannot find type definition file for 'express'. (2688)
Cannot find type definition file for 'express-serve-static-core'. (2688)
Cannot find type definition file for 'mime'. (2688)
Cannot find type definition file for 'mocha'. (2688)
Cannot find type definition file for 'morgan'. (2688)
Cannot find type definition file for 'node'. (2688)
Cannot find type definition file for 'serve-static'. (2688)
test/helloWorld.test.ts (1,24): Cannot find module 'mocha'. (2307)
test/helloWorld.test.ts (2,23): Cannot find module 'chai'. (2307)
test/helloWorld.test.ts (3,27): Cannot find module 'chai-http'. (2307)
test/helloWorld.test.ts (5,17): Cannot find module '../src/App'. (2307)
test/helloWorld.test.ts (10,1): Cannot find name 'describe'. (2304)
test/helloWorld.test.ts (12,3): Cannot find name 'it'. (2304)
test/helloWorld.test.ts (19,3): Cannot find name 'it'. (2304)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions