bhauman / bhauman/react-native-figwheel-bridge
Formatters cannot be installed
- Dominant language
- JavaScript
- Stars
- 80
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
I am following the sample example.
In my main I have:
(ns tech.matterindustries.titan.mobile.core.main
(:require [react]
[react-native :as rn]))
(def <> react/createElement)
(defn renderfn [props]
(<> rn/View
#js {:style #js {:backgroundColor "#FFFFFF"
:flex 1
:justifyContent "center"}}
(<> rn/Text
#js {:style #js {:color "black" :textAlign "center"}}
(str "HELLO Mobile"))))
;; the function figwheel-rn-root must be provided. It will be called by
;; react-native-figwheel-bridge to render your application.
;; You can configure the name of this function with config.renderFn
(defn figwheel-rn-root []
(renderfn {}))
(defn renderfn [props]
(<> rn/View
#js {:style #js {:backgroundColor "#FFFFFF"
:flex 1
:justifyContent "center"}}
(<> rn/Text
#js {:style #js {:color "black" :textAlign "center"}}
(str "HELLO"))))
;; the function figwheel-rn-root must be provided. It will be called by
;; react-native-figwheel-bridge to render your application.
;; You can configure the name of this function with config.renderFn
(defn figwheel-rn-root []
(renderfn {}))`
The android.cljs.edn
`^{:open-url false
:npm {:bundles {"dummy.js" "index.js"}}}
{:main core.main}`
My index.js
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
cljsExports = {};
cljsExports["react"] = require('react');
cljsExports["react-native"] = require('react-native');
cljsExports["create-react-class"] = require('create-react-class');
var figBridge = require("react-native-figwheel-bridge");
figBridge.shimRequire(cljsExports);
figBridge.start({appName: "my_mobile_app",
optionsUrl: "http://localhost:8081/target/public/cljs-out/android/cljsc_opts.json"});`
The deps.edn
{:deps {org.clojure/clojurescript {:mvn/version "1.10.439"}
com.bhauman/figwheel-main {:mvn/version "0.2.1-SNAPSHOT"}}
:paths ["src/main" "target" "resources"]}
And is the error that I get:



Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the sample setup using android.cljs.edn, index.js, and deps.edn, then inspect the installation failure shown in the attached screenshots. Done means the sample React Native ClojureScript project can install its formatters without the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100