Gomah / bulmil

:lipstick: A agnostic UI components library based on Web Components, made with Bulma & Stencil.
https://bulmil.vercel.app
MIT License
153 stars 12 forks source link

Runing issues with installing react example #141

Open akawanishi opened 9 months ago

akawanishi commented 9 months ago

When trying to test the react application example and after running below commands

$: git clone https://github.com/gomah/bulmil $: cd bulmil/examples/react $: npm install

below error is thrown:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @storybook/addons@6.5.16
npm ERR!   node_modules/@storybook/addons
npm ERR!     peer @storybook/addons@"^6.4.0" from @storybook/addon-knobs@6.4.0
npm ERR!     node_modules/@storybook/addon-knobs
npm ERR!       dev @storybook/addon-knobs@"6.4.0" from the root project
npm ERR!   dev react@"18.2.0" from @bulmil/react@0.48.1
npm ERR!   packages/react
npm ERR!     @bulmil/react@0.48.1
npm ERR!     node_modules/@bulmil/react
npm ERR!       workspace packages/react from the root project
npm ERR!       2 more (@bulmil/react-example, @bulmil/next-example)
npm ERR!   4 more (react-dom, @storybook/api, @storybook/components, @storybook/theming)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional react@"^16.8.0 || ^17.0.0" from @storybook/addon-knobs@6.4.0
npm ERR! node_modules/@storybook/addon-knobs
npm ERR!   dev @storybook/addon-knobs@"6.4.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/i774615/.npm/eresolve-report.txt for a full report.

even if running npm install --force causes

118 vulnerabilities (1 low, 91 moderate, 16 high, 10 critical)

no package-lock.json is created and cannot run

npm run serve

the package.json looks like this:

{
  "name": "@bulmil/react-example",
  "version": "0.48.1",
  "private": true,
  "dependencies": {
    "@bulmil/core": "0.48.1",
    "@bulmil/react": "0.48.1",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-scripts": "4.0.3",
    "typescript": "5.2.2"
  },
  "scripts": {
    "build": "react-scripts build",
    "eject": "react-scripts eject",
    "serve": "react-scripts start"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}