infor-cloud / m3-h5-sdk

https://infor-cloud.github.io/m3-h5-sdk/
34 stars 20 forks source link

Issues installing dependencies for soho samples #146

Open albinpettersson opened 1 year ago

albinpettersson commented 1 year ago

Describe the bug Installing the dependencies for the soho samples doesn't work out of the box. More specifically, the issue seems to be related to installing jasmine-core 3.7.x.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: infor-m3-odin-sample-soho@5.0.0
npm ERR! Found: jasmine-core@3.7.1
npm ERR! node_modules/jasmine-core
npm ERR!   dev jasmine-core@"~3.7.0" from the root project
npm ERR! peer jasmine-core@">=3.8" from karma-jasmine-html-reporter@1.7.0 
npm ERR! node_modules/karma-jasmine-html-reporter
npm ERR!   dev karma-jasmine-html-reporter@"^1.5.0" from the root project

To Reproduce Steps to reproduce the behavior:

  1. Download the repo and unzip it
  2. Unzip m3-h5-sdk-master.zip\m3-h5-sdk-master\m3-odin\samples\infor-m3-odin-sample-soho-5.0.0
  3. Navigate to the unzipped folder in a console/terminal
  4. Run "npm i" or "npm install"
  5. Installation of dependencies fails.

Expected behavior The dependencies should be properly installed.

Version

Additional context Bumping up the version for jasmine-core to "~3.8.0" in package.json seems to resolve the issue. I haven't tried running the material samples, so I'm not sure if the same issue exists there.

tmcconechy commented 1 year ago

@albinpettersson see this comment https://github.com/infor-design/enterprise/issues/6876#issuecomment-1270113837 i think i will revert this change but you can edit the dependencies or use npm ci as described to fix. I think...

swuendri commented 1 year ago

Dear @albinpettersson, please check this behavior with the newest release 6.0.0. I think it should be solved.