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

Cannot find module '@cljs-oss/module-deps' during lein new reagent x #186

Open
dknesek opened this issue Apr 11, 2023 · 1 comment
Open

Comments

@dknesek
Copy link

dknesek commented Apr 11, 2023

Trying a basic project creation on my Mac.

lein new reagent x seems to run normally.
lein figwheel fails with this during startup:

Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module '@cljs-oss/module-deps'
Require stack:
- /Users/user/IdeaProjects/x/[eval]
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at [eval]:8:13
    at Script.runInThisContext (node:vm:129:12)
    at Object.runInThisContext (node:vm:307:38)
    at node:internal/process/execution:79:19
    at [eval]-wrapper:6:22
    at evalScript (node:internal/process/execution:78:60) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/Users/user/IdeaProjects/x/[eval]' ]
}

Java version:

java --version              
openjdk 17.0.6 2023-01-17
OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)
OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode)
@yogthos
Copy link
Member

yogthos commented Apr 12, 2023

The latest template should be creating a project using shadow-cljs by default. You should have shadow-cljs.edn and package.json in the project folder. And then the compiler can be started with by running npm i && npx shadow-cljs watch app.

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

2 participants