Skip to content

Known issues when using custom challenges

Tomas Floxo edited this page Oct 1, 2021 · 4 revisions

On importing

Error: Assertion Failed: The id (challenge id) has already been used with another 'desafio' record.

The challenge id defined on the challenge.json is already being used by an already loaded challenge. This could happen because of using a number as the custom challenge id, which would likely conflict with a preexisting challenge, or because of trying to load the same custom challenge twice in the same browser session. The latter is a bug that should be solved, but meanwhile refreshing the site should solve the problem.

On loading (in the browser console)

Uncaught (in promise) ReferenceError: CustomScene is not defined

The pilas-bloques-exercises dependency needs to be manually updated:

  1. Clone https://github.com/Program-AR/pilas-bloques-exercises on the same root folder as your pilas bloques repository.
  2. Checkout pilas-bloques-exercises to the CustomScene branch (git checkout CustomScene).
  3. Run npm install on pilas-bloques-exercises.
  4. Run npm run exercises:build on pilas bloques.

This should update the pilas-bloques-exercises dependency to the latest version.