Comments (5)
Problem solved, I manually added react
and react-dom
dependencies into deps.edn
fixed this error. Hope this can be added to electron-app
template in future.
from electron-app.
Now the deps.edn
is:
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/clojurescript {:mvn/version "1.10.597"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
com.bhauman/figwheel-main {:mvn/version "0.2.3"}
reagent {:mvn/version "0.9.0-rc3" :exclusions [cljsjs/react cljsjs/react-dom]}
cljsjs/react {:mvn/version "16.11.0-0"}
cljsjs/react-dom {:mvn/version "16.11.0-0"}}
from electron-app.
You really should not need to do this - react
and react-dom
are both installed as Node dependencies (see https://github.com/paulbutcher/electron-app/blob/master/resources/clj/new/electron_app/package.json#L15)
Are you quite sure that you've run npm install
as described in the README?
from electron-app.
I am concerned that the issues that you describe in #2 suggest that there is something odd about your configuration of npm
. Are react
and react-dom
in node_modules
? If not, this is your problem and the solution is to fix whatever's wrong with npm
on your system.
from electron-app.
I only have this config in ~/.npmrc
editor=emacsclient
registry=https://registry.npm.taobao.org
disturl=https://npm.taobao.org/mirrors/node
ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron
from electron-app.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-app.