diff --git a/packages/generators/src/app/templates/app.tpl.ts b/packages/generators/src/app/templates/app.tpl.ts index 13a6135df1..4cfbdc462d 100644 --- a/packages/generators/src/app/templates/app.tpl.ts +++ b/packages/generators/src/app/templates/app.tpl.ts @@ -81,7 +81,7 @@ ${schema !== false ? `import { configurationValidator } from './configuration'` import { logger } from './logger' import { logError } from './hooks/log-error' import { services } from './services/index' -import { channels } from './channels' +${transports.includes('websockets') ? `import { channels } from './channels'` : ''} const app: Application = express(feathers())