seantempesta / cljsrn-re-frame-workers

A library supporting react-native-workers with re-frame for ClojureScript and React Native.
MIT License
14 stars 4 forks source link

Couldn't get the example app to run #1

Open noitcudni opened 7 years ago

noitcudni commented 7 years ago

I'm getting the following message when I run lein prod-build

[node-haste] Encountered an error while persisting cache:
> Error: TimeoutError: transforming /Users/lih/Documents/workspace/cljsrn-re-frame-workers/examples/worker-test/worker.js took longer than 301 seconds.
> You can adjust timeout via the 'transformTimeoutInterval' option
>     at /Users/lih/Documents/workspace/cljsrn-re-frame-workers/examples/worker-test/node_modules/react-native/packager/react-packager/src/JSTransformer/index.js:101:30
>     at tryCallOne (/Users/lih/Documents/workspace/cljsrn-re-frame-workers/examples/worker-test/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
>     at /Users/lih/Documents/workspace/cljsrn-re-frame-workers/examples/worker-test/node_modules/react-native/node_modules/promise/lib/core.js:123:15
>     at flush (/Users/lih/Documents/workspace/cljsrn-re-frame-workers/examples/worker-test/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)
>     at nextTickCallbackWith0Args (node.js:420:9)
>     at process._tickCallback (node.js:349:13)
/Users/lih/Documents/workspace/cljsrn-re-frame-workers/examples/worker-test/node_modules/react-native/node_modules/promise/lib/done.js:10
seantempesta commented 7 years ago

Looks like a timeout error during "transformation" (which I think is babel trying to parse the rather large worker.js file generated by clojurescript). You might be able to fix it using this hack I created a while back:

https://github.com/facebook/react-native/issues/5196#issuecomment-237549879

Also, I stopped using workers in my project, as it seems like the react-native-workers project isn't being kept up to date. So I'm not sure if this project is even building with newer versions of react native.

noitcudni commented 7 years ago

Thanks for the info.

noitcudni commented 7 years ago

I just finished writing my version of react-native-workers https://github.com/noitcudni/react-native-background-workers. Unfortunately, it only works on iOS right now. I'm planning on getting your code working with my library. Once that's done, would you like me to submit a pull request? I'm only hesitant 'cause it will break Android if it's not broken already.

seantempesta commented 7 years ago

Sure. Partially working is better than not working at all. :) On Fri, Feb 3, 2017 at 10:56 AM Lih Chen notifications@github.com wrote:

I just finished writing my version of react-native-workers https://github.com/noitcudni/react-native-background-workers. Unfortunately, it only works on iOS right now. I'm planning on getting your code working with my library. Once that's done, would you like me to submit a pull request? I'm only hesitant 'cause it will break Android if it's not broken already.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/seantempesta/cljsrn-re-frame-workers/issues/1#issuecomment-277331257, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsVBHVI2tOtrcp06jDppFj_gm2h6Ir-ks5rY3htgaJpZM4LwGHk .

-- Sean