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

Runing issues with installing react example #141

Open
akawanishi opened this issue Nov 29, 2023 · 0 comments
Open

Runing issues with installing react example #141

akawanishi opened this issue Nov 29, 2023 · 0 comments

Comments

@akawanishi
Copy link

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: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @storybook/[email protected]
npm ERR!   node_modules/@storybook/addons
npm ERR!     peer @storybook/addons@"^6.4.0" from @storybook/[email protected]
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/[email protected]
npm ERR!   packages/react
npm ERR!     @bulmil/[email protected]
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/[email protected]
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"
    ]
  }
}
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

1 participant