question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'routing-controllers'.

See original GitHub issue

Hey there. I’m trying to use routing-controllers in my project; however, after following the instructions in README.md, I get a error TS2307: Cannot find module 'routing-controllers'. wherever I try to use it, e.g. `import { Controller, Param, Body, Get, Post, Put, Delete, Req, Res } from “routing-controllers”;``

I’m on node v7 and TypeScript 2.0.10. Not sure what I am doing wrong though… routing-controllers folder is correctly in my node_modules folder.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
eduardoweilandcommented, Dec 3, 2016

I have found the same problem. I am migrating a project from JS to TypeScript, and I had the allowJs config enabled in my tsconfig.json:

{
  "compilerOptions": {
    "allowJs": true,
    // other options
  }
}

I don’t know why this only happens when using routing-controllers. I am already using TypeORM with the allowJs option enabled without problems. This error only happened after installing this package.

0reactions
github-actions[bot]commented, Dec 17, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

routing-controllers - npm
Start using routing-controllers in your project by running `npm i ... options for validation (groups, skipping missing properties, etc.) ...
Read more >
Cannot find module for routes - Stack Overflow
I'm getting the error: Cannot find module '.app/routes/favourite.routes' and I'm not sure why this error is occuring.
Read more >
Introduction to Routing-Controllers - Web dev etc
Routing Controllers is a framework for building backend applications in Node. It is quite lightweight, easy to learn and pleasant to use.
Read more >
Understanding controllers and routes in NestJS
Let's take a look at NestJS routes and controllers, including what they do, how they work, and advanced use cases.
Read more >
routing-controllers@0.10.0 - jsDocs.io
Documentation for npm package routing-controllers@0.10.0 - jsDocs.io. ... This requires installation of additional module (cors for express ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found