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

Enabling auto-require breaks re-natal #221

Closed
mvid opened this issue Apr 27, 2019 · 2 comments
Closed

Enabling auto-require breaks re-natal #221

mvid opened this issue Apr 27, 2019 · 2 comments

Comments

@mvid
Copy link

mvid commented Apr 27, 2019

I created a brand new app, and after enabling auto-require, re-natal starts failing with a cryptic error:

➜  ios: re-natal init TestApp
Creating TestApp
☕  Grab a coffee! Downloading deps might take a while...
Creating Leiningen project
Updating Leiningen project
Creating React Native skeleton.
Creating Re-Natal config
Compiling ClojureScript

To get started with your new app, first cd into its directory:
cd test-app

Run iOS app:
react-native run-ios --configuration Debug > /dev/null

To use figwheel type:
re-natal use-figwheel
lein figwheel ios

Reload the app in simulator (⌘ + R)

At the REPL prompt type this:
(in-ns 'test-app.ios.core)

Changes you make via the REPL or by changing your .cljs files should appear live.

Try this command as an example:
(dispatch [:set-greeting "Hello Native World!"])

✔ Done

➜  ios: cd test-app
➜  test-app: ls
CHANGELOG.md       android            figwheel-bridge.js index.ios.js       package-lock.json  src
LICENSE            doc                images             ios                package.json       target
README.md          env                index.android.js   node_modules       project.clj        test
➜  test-app re-natal use-figwheel

Cleaning...
index.ios.js was regenerated
index.android.js was regenerated
Host in RCTWebSocketExecutor.m was updated
Dev server host for iOS: localhost
Dev server host for Android: localhost
➜  test-app: re-natal use-ios-device simulator
Using 'localhost' for iOS simulator
Please run: re-natal use-figwheel to take effect.
➜  test-app: re-natal enable-auto-require
Auto-Require feature is enabled in use-figwheel command
➜  test-app: re-natal use-figwheel
Cleaning...
Auto-require is enabled. Scanning for require() calls in *.cljs files...
Cannot read property 'concat' of undefined
➜  test-app:
@neutrous
Copy link

#206

@drapanjanas
Copy link
Owner

This should be fixed in v0.11.1

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

3 participants