[FOLIO-1346] Unable to enable Okapi Users app module for test tenant in tutorial Created: 13/Jul/18  Updated: 12/Nov/18  Resolved: 16/Jul/18

Status: Closed
Project: FOLIO
Components: Documentation
Affects versions: None
Fix versions: None

Type: Bug Priority: P3
Reporter: Tiffany Schoneboom Assignee: David Crossley
Resolution: Done Votes: 0
Labels: documentation, tutorial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified
Environment:

I am using the vagrant box as specified in the first tutorial


Sprint:

 Description   

While going through the Folio tutorial on setting up Folio users app (https://dev.folio.org/tutorials/curriculum/05-set-up-the-folio-users-app) , I have been unable to pass one part of the tutorial where I should "enable the Okapi Users app module for the test tenant" due to a 404 Not Found error. I was able to go through the previous four tutorials with no problems.

vagrant@contrib-jessie:/vagrant/folio-tutorial-working-files$ curl -i -w '\n' -X POST -H 'Content-type: application/json' \
>    -d @okapi-enable-users.json http://localhost:9130/_/proxy/tenants/testlib/modules
HTTP/1.1 404 Not Found
Content-Type: text/plain
Content-Length: 7

testlib


 Comments   
Comment by Tiffany Schoneboom [ 13/Jul/18 ]

David Crossley Peter Murray It doesn't look like I can add you as watchers to this issue.

Thanks!

Comment by Peter Murray [ 14/Jul/18 ]

Thanks, Tiffany Schoneboom. Will look into it.

Comment by David Crossley [ 16/Jul/18 ]

Fixed and updated the tutorial docs.

The problem was that the document shows the example "enable" command for the version of mod-users that was current at the time that the document was last updated. The version that is used today is of course more recent, so the "enable" command needs to be always modified to match what was deployed in the previous step. Added a note to that effect.

Thanks for reporting the problem.

Comment by David Crossley [ 16/Jul/18 ]

Please note that the updated docs can take up to 24 hours for the cache to updated.

If so, then instead see the changes in the pull request pull/223

Comment by Tiffany Schoneboom [ 16/Jul/18 ]

Thank you David! I updated the mod-users version. I'm now able to enable the Okapi users app module, but I do not see anything at http://localhost:3000/users, the last step before "Add Users to Folio".

Do I need to yarn start in /vagrant/folio-tutorial-working-files/stripes-tutorial-platform for the users app to work? When I do that in the earlier part of the tutorial, "Add the Users app UI component to the Stripes UI Server" I get a bunch of errors. I assume this has to do with the "Note: The Stripes package.json is out-of-date."

I am still not sure how to see what's at http://localhost:3000/users.


ERROR in ./~/@folio/users/settings/permissions/PermissionSetForm.js
Module not found: Error: Can't resolve '@folio/stripes-components/lib/structures/ConfirmationModal' in '/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/@folio/users/settings/permissions'
 @ ./~/@folio/users/settings/permissions/PermissionSetForm.js 47:25-94
 @ ./~/@folio/users/settings/permissions/PermissionSets.js
 @ ./~/@folio/users/settings/index.js
 @ ./~/@folio/users/index.js
 @ ./~/@folio/stripes-loader/dist/index.js
 @ ./~/@folio/stripes-core/src/index.js
 @ multi webpack-hot-middleware/client ./~/@folio/stripes-core/src/index
ERROR in ./~/@folio/stripes-smart-components/lib/SearchAndSort/SearchAndSort.js
Module not found: Error: Can't resolve '@folio/stripes-core/src/Stripes' in '/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/@folio/stripes-smart-components/lib/SearchAndSort'
 @ ./~/@folio/stripes-smart-components/lib/SearchAndSort/SearchAndSort.js 29:15-57
 @ ./~/@folio/stripes-smart-components/lib/SearchAndSort/index.js
 @ ./~/@folio/users/Users.js
 @ ./~/@folio/users/index.js
 @ ./~/@folio/stripes-loader/dist/index.js
 @ ./~/@folio/stripes-core/src/index.js
 @ multi webpack-hot-middleware/client ./~/@folio/stripes-core/src/index
ERROR in ./~/@folio/stripes-smart-components/lib/EntryManager/EntryManager.js
Module not found: Error: Can't resolve '@folio/stripes-components/lib/Callout' in '/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/@folio/stripes-smart-components/lib/EntryManager'
 @ ./~/@folio/stripes-smart-components/lib/EntryManager/EntryManager.js 33:15-63
 @ ./~/@folio/stripes-smart-components/lib/EntryManager/index.js
 @ ./~/@folio/users/settings/permissions/PermissionSets.js
 @ ./~/@folio/users/settings/index.js
 @ ./~/@folio/users/index.js
 @ ./~/@folio/stripes-loader/dist/index.js
 @ ./~/@folio/stripes-core/src/index.js
 @ multi webpack-hot-middleware/client ./~/@folio/stripes-core/src/index
ERROR in ./~/@folio/stripes-smart-components/lib/EntryManager/EntryForm.js
Module not found: Error: Can't resolve '@folio/stripes-components/lib/structures/ConfirmationModal' in '/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/@folio/stripes-smart-components/lib/EntryManager'
 @ ./~/@folio/stripes-smart-components/lib/EntryManager/EntryForm.js 35:25-94
 @ ./~/@folio/stripes-smart-components/lib/EntryManager/EntryManager.js
 @ ./~/@folio/stripes-smart-components/lib/EntryManager/index.js
 @ ./~/@folio/users/settings/permissions/PermissionSets.js
 @ ./~/@folio/users/settings/index.js
 @ ./~/@folio/users/index.js
 @ ./~/@folio/stripes-loader/dist/index.js
 @ ./~/@folio/stripes-core/src/index.js
 @ multi webpack-hot-middleware/client ./~/@folio/stripes-core/src/index
ERROR in ./~/@folio/users/~/react-flexbox-grid/lib/index.js
Module build failed: Error: Couldn't find preset "env" relative to directory "/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/@folio/users/node_modules/react-flexbox-grid"
    at /vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (native)
    at OptionManager.resolvePresets (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-loader/lib/index.js:46:20)
    at Object.module.exports (/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/babel-loader/lib/index.js:163:20)
 @ ./~/@folio/users/lib/RenderPatronGroup/RenderPatronGroupLastUpdated.js 17:24-53
 @ ./~/@folio/users/lib/RenderPatronGroup/index.js
 @ ./~/@folio/users/settings/PatronGroupsSettings.js
 @ ./~/@folio/users/settings/index.js
 @ ./~/@folio/users/index.js
 @ ./~/@folio/stripes-loader/dist/index.js
 @ ./~/@folio/stripes-core/src/index.js
 @ multi webpack-hot-middleware/client ./~/@folio/stripes-core/src/index
ERROR in ./~/@folio/users/lib/ProxyGroup/ProxyEditList/ProxyEditList.js
Module not found: Error: Can't resolve '@folio/stripes-components/lib/structures/ConfirmationModal' in '/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/@folio/users/lib/ProxyGroup/ProxyEditList'
 @ ./~/@folio/users/lib/ProxyGroup/ProxyEditList/ProxyEditList.js 31:25-94
 @ ./~/@folio/users/lib/ProxyGroup/ProxyEditList/index.js
 @ ./~/@folio/users/lib/EditSections/ProxySection/ProxySection.js
 @ ./~/@folio/users/lib/EditSections/ProxySection/index.js
 @ ./~/@folio/users/lib/EditSections/index.js
 @ ./~/@folio/users/UserForm.js
 @ ./~/@folio/users/Users.js
 @ ./~/@folio/users/index.js
 @ ./~/@folio/stripes-loader/dist/index.js
 @ ./~/@folio/stripes-core/src/index.js
 @ multi webpack-hot-middleware/client ./~/@folio/stripes-core/src/index
ERROR in ./~/@folio/users/lib/ProxyGroup/ProxyEditItem/ProxyEditItem.js
Module not found: Error: Can't resolve '@folio/stripes-components/lib/LayoutHeader' in '/vagrant/folio-tutorial-working-files/stripes-tutorial-platform/node_modules/@folio/users/lib/ProxyGroup/ProxyEditItem'
 @ ./~/@folio/users/lib/ProxyGroup/ProxyEditItem/ProxyEditItem.js 17:20-73
 @ ./~/@folio/users/lib/ProxyGroup/ProxyEditItem/index.js
 @ ./~/@folio/users/lib/EditSections/ProxySection/ProxySection.js
 @ ./~/@folio/users/lib/EditSections/ProxySection/index.js
 @ ./~/@folio/users/lib/EditSections/index.js
 @ ./~/@folio/users/UserForm.js
 @ ./~/@folio/users/Users.js
 @ ./~/@folio/users/index.js
 @ ./~/@folio/stripes-loader/dist/index.js
 @ ./~/@folio/stripes-core/src/index.js
 @ multi webpack-hot-middleware/client ./~/@folio/stripes-core/src/index
Comment by David Crossley [ 17/Jul/18 ]

Yes, that is why the red out-of-date notice is there. See FOLIO-1349 Closed .

Apart from its Lesson-06, you have gone as far as possible with that tutorial.

Generated at Thu Feb 08 23:12:40 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.