jsntjinjin/simplereader

react-native run-ios时候报错

greatpie opened this issue · 5 comments

Cannot read property 'on' of undefined
TypeError: Cannot read property 'on' of undefined
at Client.connect (/node_modules/._fb-watchman@1.9.2@fb-watchman/index.js:184:14)

我npm install之后跑run-ios的命令报错了。

应该是版本问题吧我这边是0.42.3
不知道你的rn版本是多少
如果缺这个,试试安装单独的module: npm install fb-watchman

更新了之后可以了

有一个地方,阅读器里面跳转到书籍详情那里的bookId写死了,每次都跳到同一本书。

_toBookDetail() {
        const {readPlatform} = this.props;
        this.props.navigator.push({
            name: 'bookDetail',
            component: BookDetail,
            params: {
                bookId: this.props.bookId//修改之后
            }
        })
    }

你重新pull一下就好了,阅读器重构了

czzyw commented

Desktop/readDome/simplereader/node_modules/react-native-root-siblings/lib/AppRegistryInjection.js`: Module does not exist in the module map or in these directories: