jsonforms-react-seed icon indicating copy to clipboard operation
jsonforms-react-seed copied to clipboard

getting started instructions fail to start app

Open rbavery opened this issue 1 year ago • 4 comments

Running these: https://github.com/eclipsesource/jsonforms?tab=readme-ov-file#getting-started

Produces

# ryanavery at Ryans-MacBook-Pro.local in ~/jsonforms-react-seed on git:master ● [14:13:24]
→ npm run start

> [email protected] start
> vite preview --port 3000

/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:59
		throw new Error(
		      ^

Error: Cannot find module @rollup/rollup-darwin-arm64. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
    at requireWithFriendlyError (/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:59:9)
    at Object.<anonymous> (/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:68:76)
    at Module._compile (node:internal/modules/cjs/loader:1467:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1551:10)
    at Module.load (node:internal/modules/cjs/loader:1282:32)
    at Module._load (node:internal/modules/cjs/loader:1098:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at cjsLoader (node:internal/modules/esm/translators:318:5)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:258:7) {
  [cause]: Error: Cannot find module '@rollup/rollup-darwin-arm64'
  Require stack:
  - /Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js
      at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
      at Module._load (node:internal/modules/cjs/loader:1045:27)
      at TracingChannel.traceSync (node:diagnostics_channel:315:14)
      at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
      at Module.require (node:internal/modules/cjs/loader:1304:12)
      at require (node:internal/modules/helpers:123:16)
      at requireWithFriendlyError (/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:41:10)
      at Object.<anonymous> (/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:68:76)
      at Module._compile (node:internal/modules/cjs/loader:1467:14)
      at Module._extensions..js (node:internal/modules/cjs/loader:1551:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
      '/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js'
    ]
  }
}

Node.js v22.4.1

rbavery avatar Jul 26 '24 21:07 rbavery

Hi @rbavery, Can you try npm install && npm run dev?

sdirix avatar Aug 07 '24 11:08 sdirix

same error also with npm install && npm run dev use node 20.0.0 on mac m1 pro

Update: with install npm i @rollup/rollup-darwin-arm64 at least dev mode work

enersis-pst avatar Aug 09 '24 12:08 enersis-pst

I think there is something missing on the getting started page

To launch the app initially you need to run 3 commands:

$ npm ci
$ npm run build
$ npm start

I think this 2nd command should be added to the getting-stated page.

rsoika avatar Jan 04 '25 14:01 rsoika

Thanks for the hint @rsoika , I opened a PR on the website repo to fix this.

lucas-koehler avatar Jan 07 '25 10:01 lucas-koehler