SAP / alm-plug-in-for-grafana

Extend your analytics for application life-cycle management with the datasource plugins for SAP Cloud ALM and SAP Focused Run. With the SAP Cloud ALM Plugin for Rest interface, you are able to connect your SAP Cloud ALM tenants and get data in Table format or Time-series format to get new insights on your different ALM processes.
Apache License 2.0
12 stars 5 forks source link

Not building in Grafana 9.4.7 Docker image #86

Closed luk-ada closed 1 year ago

luk-ada commented 1 year ago

Hello

I'm building extension inside Grafana Docker image. Unfortunately it stopped working in image version 9.4.7. It looks like dependencies issue during the "yarn install". Build was working fine in previous version 9.4.3.

Can you please help?

image: docker.io/grafana/grafana-enterprise:9.4.7 plugin version: 1.1.2

 => ERROR [build 7/7] RUN yarn install && yarn build                                                                                                                                                        78.0s
------
 > [build 7/7] RUN yarn install && yarn build:
#0 1.057 yarn install v1.22.19
#0 1.097 info No lockfile found.
#0 1.112 [1/5] Validating package.json...
#0 1.118 [2/5] Resolving packages...
#0 3.886 warning Resolution field "rxjs@7.5.6" is incompatible with requested version "rxjs@7.5.7"
#0 5.017 warning @grafana/data > react-use > nano-css > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
#0 6.542 warning Resolution field "rxjs@7.5.6" is incompatible with requested version "rxjs@7.5.7"
#0 7.427 warning Resolution field "rxjs@7.5.6" is incompatible with requested version "rxjs@7.5.7"
#0 8.337 warning @grafana/runtime > @grafana/ui > react-highlight-words > memoize-one@4.1.0: New custom equality api does not play well with all equality helpers. Please use v5.x
#0 8.753 warning @grafana/runtime > @grafana/ui > slate-react > memoize-one@4.1.0: New custom equality api does not play well with all equality helpers. Please use v5.x
#0 9.580 warning @grafana/runtime > @grafana/faro-web-sdk > @grafana/faro-core > @opentelemetry/api-metrics@0.33.0: Please use @opentelemetry/api >= 1.3.0
#0 11.25 warning @grafana/runtime > @grafana/ui > rc-time-picker > rc-trigger > babel-runtime > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
#0 23.53 warning @grafana/toolkit > @jest/core > jest-config > jest-environment-jsdom > jsdom > w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
#0 24.05 warning @grafana/toolkit > css-minimizer-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
#0 24.14 warning Resolution field "rxjs@7.5.6" is incompatible with requested version "rxjs@7.5.7"
#0 25.14 warning @testing-library/jest-dom > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
#0 25.15 warning @testing-library/jest-dom > css > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
#0 25.15 warning @testing-library/jest-dom > css > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
#0 25.23 warning @testing-library/jest-dom > css > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
#0 25.23 warning @testing-library/jest-dom > css > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
#0 25.75 [3/5] Fetching packages...
#0 71.63 warning geotiff@2.0.4: The engine "browsers" appears to be invalid.
#0 71.64 error eslint-plugin-jsdoc@38.0.6: The engine "node" is incompatible with this module. Expected version "^12 || ^14 || ^16 || ^17". Got "18.14.2"
#0 71.65 error Found incompatible module.
#0 71.65 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
andreacampo commented 1 year ago

Hello Luk,

Give me some time to check this, I will get back to you as soon as possible.

Best Regards,

Andrea

andreacampo commented 1 year ago

Hello Luk,

Plese try to to add the --ignore-engines to the yarn install command.

yarn install --ignore-engines

This should solve your issue. We will soon update the build tool to a newer version and you won't need to do this in the future.

Best Regards,

Andrea

luk-ada commented 1 year ago

Hi @andreacampo "--ignore-engines" solved the problem, image is build now. Thanks!