Giter VIP home page Giter VIP logo

Comments (5)

tiye avatar tiye commented on June 10, 2024 1

I think it's because you are using npm and the project was using yarn.lock specifying shadow-cljs 2.8.x is used. In 2.9.x things change.

from minimal-shadow-cljs-webpack.

tiye avatar tiye commented on June 10, 2024

I'm not a Cider user sorry I can't offer help. You'd better add a reproducable demo and report to https://github.com/thheller/shadow-cljs . Since Webpack and shadow-cljs are two standalone tools I'm not sure if they interact with each other.

There was only one problem with shadow-cljs.edn - :entries line is missing, but from the error message it's easy enough to understand what's going wrong and fix it.

I'm not sure what did you mean. :entries is used when shadow-cljs is running a bundled cljs script in a browser, but in this demo shadow-cljs just compiles all code to js and I don't see entries. What error did you encounter?

from minimal-shadow-cljs-webpack.

Menschenkindlein avatar Menschenkindlein commented on June 10, 2024

It fails the same way with shadow-cljs cljs-repl app.

from minimal-shadow-cljs-webpack.

Menschenkindlein avatar Menschenkindlein commented on June 10, 2024

Regarding :entries:

$ npm run watch

> [email protected] watch ~/minimal-shadow-cljs-webpack
> shadow-cljs watch app

shadow-cljs - config: ~/minimal-shadow-cljs-webpack/shadow-cljs.edn
shadow-cljs - server version: 2.9.10 running at http://localhost:9630
shadow-cljs - nREPL server started on port 49555
shadow-cljs - watching build :app
[:app] Configuring build.
[:app] Build failure:
Invalid configuration
-- Spec failed --------------------

  {:target :npm-module, :output-dir "compiled/", :build-id :app}

should contain key: :entries

| key      | spec            |
|==========+=================|
| :entries | (coll-of        |
|          |  simple-symbol? |
|          |  :distinct      |
|          |  true           |
|          |  :min-count     |
|          |  1              |
|          |  :kind          |
|          |  vector?)       |

-- Relevant specs -------

:shadow.build.targets.npm-module/target:
  (clojure.spec.alpha/keys
   :req-un
   [:shadow.build.targets.shared/output-dir
    :shadow.build.targets.npm-module/entries]
   :opt-un
   [:shadow.build.targets.npm-module/runtime
    :shadow.build.targets.shared/devtools])
:shadow.build.config/build+target:
  (clojure.spec.alpha/and
   :shadow.build.config/build
   (clojure.spec.alpha/multi-spec
    shadow.build.config/target-spec
    :target))

-------------------------
Detected 1 error

from minimal-shadow-cljs-webpack.

Menschenkindlein avatar Menschenkindlein commented on June 10, 2024

The issue was resolved after upgrading to shadow-cljs 2.10.6

from minimal-shadow-cljs-webpack.

Related Issues (1)

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.