Open StarksJohn opened 7 years ago
你这个问题应该去 react-native 那里开 issue。
看了一下有几个方法:
删了 react-native 依赖然后重装
或者重启你的电脑
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.
但我看你的 index.ios.js 里的 import gouqi from './lib/app' 这句是 引用 lib 目录下的 文件, 但是 你的项目里 没有 lib 目录
因为你没有编译 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.
error TS2322: Type 'Timer' is not assignable to type 'number'
报了个错
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