Giter VIP home page Giter VIP logo

Comments (5)

stardiviner avatar stardiviner commented on June 14, 2024

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.

stardiviner avatar stardiviner commented on June 14, 2024

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.

paulbutcher avatar paulbutcher commented on June 14, 2024

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.

paulbutcher avatar paulbutcher commented on June 14, 2024

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.

stardiviner avatar stardiviner commented on June 14, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.