# RxSwift Book: Error error

**URL:** <https://forums.kodeco.com/t/rxswift-book-error-error/198318>\
**Category:** 👩🏽‍💻 Support\
**Created:** [October 21, 2023, 4:47pm UTC](https://forums.kodeco.com/t/rxswift-book-error-error/198318 "2023-10-21T16:47:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prenez01](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/prenez01/32/108808_2.png) [@prenez01](https://forums.kodeco.com/u/prenez01)\
**Post date:** [October 21, 2023, 4:47pm UTC](https://forums.kodeco.com/t/rxswift-book-error-error/198318/1 "2023-10-21T16:47:23Z")

</div>

> [@Chapter 2 - Type 'Result\<String, Error\>' has no member 'error'](https://forums.kodeco.com/t/chapter-2-type-result-string-error-has-no-member-error/158871):
>
> I got the error when using single, like the code below. guard let path = Bundle.main.path(forResource: name, ofType: “txt”) else { single(.error(FileReadError.fileNotFound)) return disposable } The error message from compiler is → Type ‘Result\<String, Error\>’ has no member ‘error’ Can somebody tell me how to solve this problem?

This error still exists in 4th edition epub. Cost me an hour.
