yuche / gouqi

🐸 枸杞 - 伪装成音乐客户端的计时 App
501 stars 75 forks source link

yarn run ios 直接报错 #12

Open StarksJohn opened 7 years ago

StarksJohn commented 7 years ago

yarn run ios 后, 直接报错

error: bundling: UnableToResolveError: Unable to resolve module ./src/app from /Users/Ebates/Desktop/chamWork/ReactNative/Demo/gouqi/index.ios.js: Directory /Users/Ebates/Desktop/chamWork/ReactNative/Demo/gouqi/src/app doesn't exist

fd6defa9-ad3f-4df4-a5dc-3eac978672cb

yuche commented 7 years ago

你这个问题应该去 react-native 那里开 issue。

看了一下有几个方法:

  1. 删了 react-native 依赖然后重装

  2. 或者重启你的电脑

  3. npm start-- --reset-cache

… 更多自己看:https://github.com/facebook/react-native/issues/14209

On 2017年8月5日 +0800 PM4:37, cham1985 notifications@github.com, wrote:

yarn run ios 后, 直接报错

error: bundling: UnableToResolveError: Unable to resolve module ./src/app from /Users/Ebates/Desktop/chamWork/ReactNative/Demo/gouqi/index.ios.js: Directory /Users/Ebates/Desktop/chamWork/ReactNative/Demo/gouqi/src/app doesn't exist

[fd6defa9-ad3f-4df4-a5dc-3eac978672cb]https://user-images.githubusercontent.com/7087874/28994265-50142b02-79fc-11e7-863d-0531083bdb8a.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/yuche/gouqi/issues/12, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG3m1Gxhj2rZJOb1SOzTvgrHdgBbaVErks5sVCm2gaJpZM4OuZ3m.

StarksJohn commented 7 years ago

但我看你的 index.ios.js 里的 import gouqi from './lib/app' 这句是 引用 lib 目录下的 文件, 但是 你的项目里 没有 lib 目录

yuche commented 7 years ago

因为你没有编译 TypeScript。

On 2017年8月6日 +0800 PM2:16, cham1985 notifications@github.com, wrote:

但我看你的 index.ios.js 里的 import gouqi from './lib/app' 这句是 引用 lib 目录下的 文件, 但是 你的项目里 没有 lib 目录

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/yuche/gouqi/issues/12#issuecomment-320488066, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG3m1A6aJrGux5m_nvyzk92VQAOYQLOhks5sVVoygaJpZM4OuZ3m.

walter211 commented 6 years ago

error TS2322: Type 'Timer' is not assignable to type 'number'

walter211 commented 6 years ago

报了个错