# Programming Clojure, Third Edition: Invalid token: ::music/id spec error (122)

**URL:** <https://forum.devtalk.com/t/programming-clojure-third-edition-invalid-token-music-id-spec-error-122/56402>\
**Category:** PragProg Customers\
**Tags:** book-programming-clojure-third-edition, errata\
**Created:** [24 May 2022 21:18 UTC](https://forum.devtalk.com/t/programming-clojure-third-edition-invalid-token-music-id-spec-error-122/56402 "2022-05-24T21:18:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alexmiller](https://forum.devtalk.com/user_avatar/forum.devtalk.com/alexmiller/32/1006_2.png) [@alexmiller](https://forum.devtalk.com/u/alexmiller)\
**Post date:** [25 May 2022 13:34 UTC](https://forum.devtalk.com/t/programming-clojure-third-edition-invalid-token-music-id-spec-error-122/56402/2 "2022-05-25T13:34:33Z")

</div>

I think this is a bug in the book in that the `music` alias is not defined before it’s used as a qualifier. To do so, you either need to define a namespace `music` that is loadable or, more commonly alias `music` to some longer namespace (which is also loadable):

`(create-ns 'domain.music)`  
`(alias 'music 'domain.music)`

In Clojure 1.11, the new `:as-alias` clause in `require` allows you to do this without loading any namespace:

`(require '[music :as-alias music])`

---

_[View the full topic](https://forum.devtalk.com/t/programming-clojure-third-edition-invalid-token-music-id-spec-error-122/56402)._
