Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't get the example app to run #1

Open
noitcudni opened this issue Jan 27, 2017 · 4 comments
Open

Couldn't get the example app to run #1

noitcudni opened this issue Jan 27, 2017 · 4 comments

Comments

@noitcudni
Copy link

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
Copy link
Owner

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:

facebook/react-native#5196 (comment)

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
Copy link
Author

Thanks for the info.

@noitcudni
Copy link
Author

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
Copy link
Owner

seantempesta commented Feb 3, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants