Picture of Saral Sharma
Modify Contrib component
by Saral Sharma - Tuesday, 19 February 2019, 1:15 PM
 

Hi,

I am trying to use mcq contrib component and rename it as new component, without changing anything in it.

Before customising the MCQ component I want to rename it, to see if I can do this.

I followed to following links to rename MCQ, but when I upload the component in AT the upload gets failed. I am using  AT "framework": "^2.0.11".

https://github.com/adaptlearning/adapt_framework/wiki/Developers-guide:-components

https://github.com/adaptlearning/adapt_framework/wiki/Developing-plugins

 

The component is working fine if I don't rename it. I have attached the files after rename the MCQ.

Please let me know if there is any more help about rename the component.

Picture of Matt Leathes
Re: Modify Contrib component
by Matt Leathes - Wednesday, 20 February 2019, 5:26 PM
 

is the .zip you attached the same as the one that you tried to upload into the AAT? If so your problem is that you haven't zipped it up correctly, the files need to be in a subfolder just like they are if you download a zip of a repository from github

couple of other things to note:

  • you need to bump the version every time you upload a new version to the AAT so I would reset to 0.0.1 and then work up from there
  • your framework dependency of ^2.0.11 I think means that you're saying it's NOT compatible with v3 or later. you might consider changing this to >=2.0.11
Picture of Matt Leathes
Re: Modify Contrib component
by Matt Leathes - Wednesday, 20 February 2019, 5:29 PM
 

You might also remove the .idea folder (something created by your IDE I think?) from it. I don't know this would cause a problem but when you're trying to debug problems like this it's best to remove all possible sources of error.