-
Notifications
You must be signed in to change notification settings - Fork 16
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
Component is not being created in Redwood/Sumac #87
Comments
Hi @navinkarkera! I see you're the new maintainer. Could you give us a hand here? Thanks! |
@mariajgrimaldi I don't have write access yet as I just closed the nomination post. I'll need to sort out the permissions first, but I can take a look in the meantime. |
@mariajgrimaldi I just tried this xblock on tutor-nightly and it seems to work, although it doesn't look very good. I am not sure if I can get redwood stack working locally via tutor as of now. |
Thank you for trying it! Was that tutor-nightly a remote environment? I'm just making sure the error is not related to an asset-production issue. |
@mariajgrimaldi No, tested it locally. |
@navinkarkera: I tested it locally on Redwood, and it worked. So this might be related to how it's being deployed, maybe to the assets-building process? I don't know this component so I couldn't say for sure, but this is the error I'm seeing in the Studio console after replicating what I mentioned above:
|
@mariajgrimaldi It might be due underscore.min.js file as that is the only file which has regex with |
@mariajgrimaldi Were you able to get this working? |
@navinkarkera: thank you for all the insight. I haven't had the time to review this, but I'll try to get someone from my team to look. Thank you! |
Hi @mariajgrimaldi @navinkarkera, I'm working on this issue. I will first try deleting the file that may be causing the error. |
I tested in a remote environment on Redwood (18.1.2). I installed a custom version that doesn't include the VM591:1 Uncaught SyntaxError: Invalid regular expression flags
at eval (<anonymous>)
at Function.globalEval (cms-base-vendor.5fa9e818ccd4.js:486:5)
at domManip (cms-base-vendor.5fa9e818ccd4.js:5434:15)
at jQuery.fn.init.append (cms-base-vendor.5fa9e818ccd4.js:5574:10)
at child.loadResource (container.33125aa522f51f597b81.ab77e4b3456f.js:2:97554)
at i (container.33125aa522f51f597b81.ab77e4b3456f.js:2:97120)
at Object.<anonymous> (container.33125aa522f51f597b81.ab77e4b3456f.js:2:97192)
at fire (cms-base-vendor.5fa9e818ccd4.js:3330:31)
at Object.add [as done] (cms-base-vendor.5fa9e818ccd4.js:3389:7)
at i (container.33125aa522f51f597b81.ab77e4b3456f.js:2:97175) I will continue to investigate what may be causing the error. |
Hi, sorry for not updating the status of this. I spent some more time researching and found the following:
In conclusion, the problem seems to be directly in |
@BryanttV Thank you for you investigation! @mariajgrimaldi Should we close this issue now that it has been fixed in master branch of edx-platform? |
Hi, @mariajgrimaldi, @navinkarkera We have been testing on: The error is still present. Since these environments are not aligned with the latest changes in the |
@BryanttV: have you been able to reproduce this issue in the sumac sandbox? |
Hi @mariajgrimaldi, I have bad news. The error keeps happening in the Sumac sandbox 🤔 I'm running out of ideas about what might happen. |
@navinkarkera, could you help us by looking into this issue? It seems like this xblock is unusable in remote environments. |
@BryanttV I don't have a remote environment to test this on but I have created this PR: #105 that removes use of mustache templates and replaces it with edx.HtmlUtils.template (which is what is used in edx-platform) and also upgrades tooltipster. Can you please test this PR branch in your remote environment and see if it fixes the issue? |
Hi @navinkarkera, I tested in our remote environment in Sumac with your branch, but the same error still happens. |
Expected behavior
Recommender xblock should be created.
Actual behavior
When a recommender component is added nothing happens. When the page is refreshed on studio the page won't load. From LMS an error is displayed.
You can see it here (until next Monday): https://studio.redwood.demo.edly.io/container/block-v1:OpenedX+DemoX+DemoCourse+type@vertical+block@19fc1913a7f64ce4a4223e9f314cedef
Screencast.from.23-05-24.09.51.20.webm
Steps to reproduce
Go to Studio, add "recommender" to "Advanced Settings" -> "Advanced module list" add a component from "Advanced" -> "recommender"
Original issue: openedx/wg-build-test-release#355
The text was updated successfully, but these errors were encountered: