You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server creates ids for questions and answers if an object looks like a question, but the MWDK doesn't.
This will cause issues when testing scoring and playing if the player relies on those IDs.
The workaround right now is to add this to the individual widget's webpack config and create a second demo.json
//override the demo with a copy that assigns ids to each question for dev purposes
let configOptions = {}
if (process.env.npm_lifecycle_script == 'webpack-dev-server') {
configOptions.demoPath = 'devmateria_demo.json'
}
module.exports = require('materia-widget-development-kit/webpack-widget').getLegacyWidgetBuildConfig(configOptions)
The text was updated successfully, but these errors were encountered:
The server creates ids for questions and answers if an object looks like a question, but the MWDK doesn't.
This will cause issues when testing scoring and playing if the player relies on those IDs.
The workaround right now is to add this to the individual widget's webpack config and create a second demo.json
The text was updated successfully, but these errors were encountered: