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

Grunt task failure for Site Preview after new install #2647

Open
ScottMRafferty opened this issue Sep 7, 2022 · 1 comment
Open

Grunt task failure for Site Preview after new install #2647

ScottMRafferty opened this issue Sep 7, 2022 · 1 comment

Comments

@ScottMRafferty
Copy link

ScottMRafferty commented Sep 7, 2022

Expected Behaviour

After fresh install, creating a basic course and clicking on the Preview Course button should show a course preview.

Actual Behaviour

Click Preview Course button and error appears in a dialog box stating that the grunt task failed. Node console showing a warning about unexpected character ? after the grunt handlebar task i.e. in the grunt javascript (compile) task.

Resolving Behaviour (in this scenario)

Not sure if this should go in this repo as it may be adapt_framework but I was primarily installing the Authoring tool. After making the following change I was able to get the preview working fine.

Modified the nullish coalescing operator (??) at line 127 to an OR operator (||) in tenant_id/adapt_framework/grunt/tasks/javascript.js.

Someone else may have come across this so I hope this helps. Great tool!

Versions

  • Authoring Tool Version: 0.10.5
  • Framework Version: 5.22.3
  • Node.js Version: 12.16.3
  • MongoDB Version: 3.6.3
  • Operating System: Ubuntu 18.04.4 LTS
  • Browser: Safari 15.6.1
@marissa-champions
Copy link

Thanks for this. I was having issues upgrading the framework and this fixed it.

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

No branches or pull requests

2 participants