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

Missing dependencies #11

Open
srjturner opened this issue Jul 1, 2022 · 2 comments
Open

Missing dependencies #11

srjturner opened this issue Jul 1, 2022 · 2 comments

Comments

@srjturner
Copy link

srjturner commented Jul 1, 2022

I am trying to run platform-enduser. I have done yarn install at the root of the repo. When I do yarn dev I get a load of missing dependencies:

* @forgerock/platform-admin/src/assets/images/flags in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"79ca724b-vue-loader-template"}![..]/platform-ui/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/components/DropdownMenu/index.vue?vue&type=template&id=7763e69a&scoped=true&
* @googlemaps/markerclusterer in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Activity/EventDetail/MiniMap.vue?vue&type=script&lang=js&, [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Activity/RiskMap/index.vue?vue&type=script&lang=js&
* @riophae/vue-treeselect in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Shared/TreeSelect/index.vue?vue&type=script&lang=js&
* @riophae/vue-treeselect/dist/vue-treeselect.css in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Shared/TreeSelect/index.vue?vue&type=script&lang=js&
* brace in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Activity/EventLog/index.vue?vue&type=script&lang=js&, [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Pipelines/PipelineLogs/index.vue?vue&type=script&lang=js& and 2 others
* brace/mode/json in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Activity/EventLog/index.vue?vue&type=script&lang=js&, [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/RiskConfig/RiskConfigEvaluationPreview.vue?vue&type=script&lang=js&
* brace/mode/yaml in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Pipelines/PipelineLogs/index.vue?vue&type=script&lang=js&, [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/RiskConfig/index.vue?vue&type=script&lang=js&
* d3-simple-slider in ../platform-shared/src/views/AutoAccess/Models/d3/slider.js
* vue-slider-component in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Shared/RiskScoreSlider/index.vue?vue&type=script&lang=js&
* -!../../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!vue-slider-component/theme/default.css in [..]/platform-ui/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1![..]/platform-ui/node_modules/vue-loader/lib/loaders/stylePostLoader.js![..]/platform-ui/node_modules/postcss-loader/src??ref--8-oneOf-1-2![..]/platform-ui/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Shared/RiskScoreSlider/index.vue?vue&type=style&index=0&lang=scss&

(Note: the [..] I have put above are just my local paths which I have redacted.)

I can eliminate most of these simply by installing them:

npm install --save @googlemaps/markerclusterer
npm install --save @riophae/vue-treeselect
npm install --save brace
npm install --save d3-simple-slider
npm install --save vue-slider-component

Presumably someone with write-access here needs to do the same in this repo to update the package.json?

That leaves @forgerock/platform-admin/src/assets/images/flags.

If I try npm install --save @forgerock/platform-admin I get:

npm install --save @forgerock/platform-admin
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@forgerock%2fplatform-admin - Not found
npm ERR! 404 
npm ERR! 404  '@forgerock/platform-admin@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

The only (temporary) fix I have found is to remove the reference from packages/platform-shared/src/components/DropdownMenu/index.vue

@dev-pixie
Copy link

I am trying to run platform-enduser. I have done yarn install at the root of the repo. When I do yarn dev I get a load of missing dependencies:

* @forgerock/platform-admin/src/assets/images/flags in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"79ca724b-vue-loader-template"}![..]/platform-ui/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/components/DropdownMenu/index.vue?vue&type=template&id=7763e69a&scoped=true&
* @googlemaps/markerclusterer in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Activity/EventDetail/MiniMap.vue?vue&type=script&lang=js&, [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Activity/RiskMap/index.vue?vue&type=script&lang=js&
* @riophae/vue-treeselect in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Shared/TreeSelect/index.vue?vue&type=script&lang=js&
* @riophae/vue-treeselect/dist/vue-treeselect.css in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Shared/TreeSelect/index.vue?vue&type=script&lang=js&
* brace in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Activity/EventLog/index.vue?vue&type=script&lang=js&, [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Pipelines/PipelineLogs/index.vue?vue&type=script&lang=js& and 2 others
* brace/mode/json in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Activity/EventLog/index.vue?vue&type=script&lang=js&, [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/RiskConfig/RiskConfigEvaluationPreview.vue?vue&type=script&lang=js&
* brace/mode/yaml in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Pipelines/PipelineLogs/index.vue?vue&type=script&lang=js&, [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/RiskConfig/index.vue?vue&type=script&lang=js&
* d3-simple-slider in ../platform-shared/src/views/AutoAccess/Models/d3/slider.js
* vue-slider-component in [..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--12-0![..]/platform-ui/node_modules/babel-loader/lib??ref--12-1![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Shared/RiskScoreSlider/index.vue?vue&type=script&lang=js&
* -!../../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!vue-slider-component/theme/default.css in [..]/platform-ui/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1![..]/platform-ui/node_modules/vue-loader/lib/loaders/stylePostLoader.js![..]/platform-ui/node_modules/postcss-loader/src??ref--8-oneOf-1-2![..]/platform-ui/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3![..]/platform-ui/node_modules/cache-loader/dist/cjs.js??ref--0-0![..]/platform-ui/node_modules/vue-loader/lib??vue-loader-options!../platform-shared/src/views/AutoAccess/Shared/RiskScoreSlider/index.vue?vue&type=style&index=0&lang=scss&

(Note: the [..] I have put above are just my local paths which I have redacted.)

I can eliminate most of these simply by installing them:

npm install --save @googlemaps/markerclusterer
npm install --save @riophae/vue-treeselect
npm install --save brace
npm install --save d3-simple-slider
npm install --save vue-slider-component

Presumably someone with write-access here needs to do the same in this repo to update the package.json?

That leaves @forgerock/platform-admin/src/assets/images/flags.

If I try npm install --save @forgerock/platform-admin I get:

npm install --save @forgerock/platform-admin
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@forgerock%2fplatform-admin - Not found
npm ERR! 404 
npm ERR! 404  '@forgerock/platform-admin@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

The only (temporary) fix I have found is to remove the reference from packages/platform-shared/src/components/DropdownMenu/index.vue

Thanks, this works. This is a temporary fix. I hope there is a final resolution on this.

@daveernstingFR
Copy link
Contributor

daveernstingFR commented Sep 20, 2022

We have now raised an issue for this on our internal Jira: https://bugster.forgerock.org/jira/browse/IAM-2347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants