seantempesta / expo-cljs-template

Expo template for Clojurescript React Native
Eclipse Public License 1.0
304 stars 33 forks source link

exp start - Doesn't work on Windows #29

Closed markokocic closed 7 years ago

markokocic commented 7 years ago

When trying to run lein figwheel on windows there's a compilation error in dev/index.cljs compaling that \i is not a valid escape sequence.

markokocic commented 7 years ago

lein figwheel now appears to complete succesfully, but I still se problems when trying to run on windows.

Creating projects, fetching dependencies (yarn or npm install) works fine, until the moment I try to start expo. I get the following errors in the command window and XDE tool after running exp start:

1:02:53 PM
Restarting project and clearing packager cache (Hold shift while clicking restart to avoid clearing cache).
1:03:05 PM
Starting React Native packager...
1:03:19 PM
Scanning 480 folders for symlinks in s:\opt\source\explay\node_modules (21ms)
1:03:20 PM
Running packager on port 19001
1:03:21 PM
Watchman:  Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
  Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
  Error: Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
1:03:21 PM
React packager ready.
1:03:26 PM
Project opened! You can now use the "Send Link" or "Device" buttons to view your project.
1:03:28 PM
Watchman:  Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
1:03:28 PM
ERROR  Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.

I installed watchman using npm install -g fb-watchman and verified that it works by running it from the command prompt, but I still get the same error when trying to run exp start.

When trying to connect to the project from Android client I get the following error:


<!doctype html5>
<html>
    <head>
        <style type="text/css">

        strong { font-weight: bold; }
        hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; }
        html { font-family: sans-serif;   -ms-text-size-adjust: 100%;   -webkit-text-size-adjust: 100%;   } body { margin: 0; }
        a { background-color: transparent; }
        a:active, a:hover { outline: 0; }
        </style>

        <style type="text/css">
            body { background-color: #f5f5f5; }
            .container { width: 500px; margin: auto; color: #444; padding: 5px; }
            a, strong { color: purple; text-decoration: none; }
            a:hover { text-decoration: underline; }
            h2 { text-align: center; color: #000; }
            p { line-height: 20px; }
        </style>
    </head>
    <body>
        <div class="container">

<h2>Failed to complete tunnel connection</h2>
<hr />
<p>
    The connection to <strong><a href="http://packager.kw-vvc.marko-kocic.explay.exp.direct">http://packager.kw-vvc.marko-kocic.explay.exp.direct</a></strong>
    was successfully tunneled to your ngrok client,
    but the client failed to establish a connection to
    the local address <strong><a href="http://localhost:19001">localhost:19001</a></strong>.
</p>
<p>
    Make sure that a web service is running on
    <strong><a href="http://localhost:19001">localhost:19001</a></strong> and that it is a valid address.
</p>
<p>
    The error encountered was: <strong style="color: #9E2929">dial tcp [::1]:19001: connectex: No connection could be made because the target machine actively refused it.</strong>
</p>

        </div>
    </body>
</html>

ABI15_0_0RCTFatal
ABI15_0_0RCTSetFatalHandler
ABI15_0_0RCTSetFatalHandler
<redacted>
<redacted>
_dispatch_main_queue_callback_4CF
<redacted>
<redacted>
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
Exponent
<redacted>
seantempesta commented 7 years ago

Is this an exponent issue or the cljs-expo wrapper? Like if you create a normal expo project do you still have the same problem?

markokocic commented 7 years ago

It's cljs-expo issue. New pure expo projects work fine.

seantempesta commented 7 years ago

I just got a windows machine and from following the installation instructions the template is working for me. Please re-open this if you still have problems.