8000 Cannot find module './channels' or its corresponding type declarations · Issue #3104 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Cannot find module './channels' or its corresponding type declarations #3104

@munir90

Description

@munir90

Steps to reproduce

While creating a new app through CLI, it gives error "Cannot find module './channels' or its corresponding type declarations" in both TypeScript and JavaScript.

Following are the steps to reproduce this issue:
Step 1: Create New App
npm create feathers TestApp

Step 2: Do you want to use JavaScript or TypeScript?
Select Any (JavaScript/TypeScript)

Step 3: Which HTTP framework do you want to use?
I have selected Express, but I think this will not effect the error part.

Step 4: What APIs do you want to offer?
At this step only check HTTP (REST) and not the Real-Time(Socket).

Step 5: Select rest items to default.


image


Step 6: Run the application:
npm run dev

It will give the error, because in app.js / app.ts it adds the line for channels but the file is not there. I manually commented the following lines:

  • Line Number 21: import { channels } from './channels'
  • Line Number 39: app.configure(channels)

Expected behavior

channel must not be included in app.js/app.ts and run the app properly.


image


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0