# Modern Front-End Development for Rails: Typo/Correction? import \* as Channels for application.ts

**URL:** <https://forum.devtalk.com/t/modern-front-end-development-for-rails-typo-correction-import-as-channels-for-application-ts/1018>\
**Category:** PragProg Customers\
**Tags:** book-modern-front-end-development-for-rails, errata\
**Created:** [7 July 2020 19:43 UTC](https://forum.devtalk.com/t/modern-front-end-development-for-rails-typo-correction-import-as-channels-for-application-ts/1018 "2020-07-07T19:43:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devmaker](https://forum.devtalk.com/user_avatar/forum.devtalk.com/devmaker/32/807_2.png) [@devmaker](https://forum.devtalk.com/u/devmaker)\
**Post date:** [7 July 2020 19:43 UTC](https://forum.devtalk.com/t/modern-front-end-development-for-rails-typo-correction-import-as-channels-for-application-ts/1018/1 "2020-07-07T19:43:42Z")

</div>

Page 15 shows these imports for the conversion of application.js to application.ts

```auto
import * as ActiveStorage from "@rails/activestorage"
import Rails from "@rails/ujs"
import * as Channels from "channels"
import Turbolinks from "turbolinks"

```

However I had to change the Channels import to the following to get a build:

```auto
// from @rails/actioncable not channels
import * as Channels from "@rails/actioncable"

```

Environment: Ruby 2.7.1 Rails 6.0.3.2 Ubuntu 20 LTS

---

<div class="post-metadata">

**Author:** ![msducheminjr](https://forum.devtalk.com/user_avatar/forum.devtalk.com/msducheminjr/32/1175_2.png) [@msducheminjr](https://forum.devtalk.com/u/msducheminjr)\
**Post date:** [20 January 2021 19:44 UTC](https://forum.devtalk.com/t/modern-front-end-development-for-rails-typo-correction-import-as-channels-for-application-ts/1018/2 "2021-01-20T19:44:13Z")

</div>

This works without the changes on 6.1.1 and Ruby 3.0.0 (and probably 2.7.x) as-of January 20, 2021. The intro (beta 6 as-of August 2020) said to use edge Rails (6.1 prerelease on master), and it might have worked on master before 6.1.x officially released.
