cgkineo / adapt-pageNav

Navigation bar component (quicknav clone)
GNU General Public License v3.0
6 stars 4 forks source link

Bower.json error #14

Closed SmallDigital closed 3 years ago

SmallDigital commented 3 years ago

I'm using the Authoring tool.

Adapt authoring tool 0.10.5. Adapt framework 5.11.0.

Unable to preview course when Page Nav component is added to a block.

21 13:18:15 +00:00] ENOENT: no such file or directory, open '/Users/LeonardL/adapt_authoring/temp/60201f20acc458a6b564d7bb/adapt_framework/src/components/adapt-pageNav/bower.json'

Please find attached screenshots of errors:

Screenshot 2021-03-13 at 13 32 06 Screenshot 2021-03-13 at 13 31 09

Any pointers/assistance appreciated.

SmallDigital commented 3 years ago

@chris-steele @moloko @kirsty-hames Hi - just wondering if you have come across the above issue? and if so do you have any pointers on how to resolve. If this is the wrong place to post issues like the above - let me know and I'll post it in the forum. Thanks.

moloko commented 3 years ago

hi @SmallDigital no-one's reported anything like this - and this is a plugin we use on almost all our projects here at Kineo. Perhaps either @tomgreenfield or @taylortom (as our resident authoring tool experts) might be able to shed some light on why you're seeing this.

tomgreenfield commented 3 years ago

Laura Leonard @PhotographyCamp_twitter Mar 12 11:07 @squire:privacytools.io I've installed both adapt-footer and adapt-pageNav. - I got an error with the adapt-pageNav so I deleted it from the plugin management area in the tool. I tried to re-upload it and got an error: Plugin upload failed Error: You already have this version of the plugin installed. Do I need to remove it from mongo as well or can I delete it from the src folder?

Judging by the Gitter message it looks like this might be an issue arising from the tinkering of the filesystem/database. Does the file referenced in the error message actually exist?

As @moloko points out, we use this plugin on a fair few authoring tool instances and I can't say this has cropped up before.

SmallDigital commented 3 years ago

Laura Leonard @PhotographyCamp_twitter Mar 12 11:07 @Squire:privacytools.io I've installed both adapt-footer and adapt-pageNav. - I got an error with the adapt-pageNav so I deleted it from the plugin management area in the tool. I tried to re-upload it and got an error: Plugin upload failed Error: You already have this version of the plugin installed. Do I need to remove it from mongo as well or can I delete it from the src folder?

Judging by the Gitter message it looks like this might be an issue arising from the tinkering of the filesystem/database. Does the file referenced in the error message actually exist?

As @moloko points out, we use this plugin on a fair few authoring tool instances and I can't say this has cropped up before.

Hi @moloko @tomgreenfield @taylortom - Thank you for coming back - I have checked the file structure. It appears to there. Please find attached screenshots. Is there a way to reinstall the plugin from the command line rather than through the interface? Or do you have any other suggestions re: Database? Is there a way to remove the plugin and start again? Or is it a case of me having to reinstall adapt?

Screenshot 2021-03-15 at 15 31 38 Screenshot 2021-03-15 at 15 33 41
moloko commented 3 years ago

the folder name in your Finder screenshot is adapt-pageNav-master which is presumably why you're getting the error:

ENOENT: no such file or directory, open '/Users/LeonardL/adapt_authoring/temp/60201f20acc458a6b564d7bb/adapt_framework/src/components/adapt-pageNav/bower.json'

I have no idea if just renaming the folder would work or might have knock-on impacts but it might be worth a try?

SmallDigital commented 3 years ago

@moloko You are a genius!! That worked. Thank you so much.

Like Tom said above - I did get an initial error so I tried to remove the plugin, then re-install it, and I obviously overwrote something between the versions!

I have used the framework quite a bit in the past, but I thought I'd learn how to use the authoring tool; to be able to teach my students how to create e-learning content using Adapt.