feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.03k stars 748 forks source link

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

Closed munir90 closed 1 year ago

munir90 commented 1 year ago

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:

Expected behavior

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


image


daffl commented 1 year ago

This is fixed now in 5.0.1