diff --git a/packages/string-templates/src/index.js b/packages/string-templates/src/index.js index 8e28956f75..fbe5910938 100644 --- a/packages/string-templates/src/index.js +++ b/packages/string-templates/src/index.js @@ -396,6 +396,5 @@ module.exports.convertToJS = hbs => { module.exports.FIND_ANY_HBS_REGEX = FIND_ANY_HBS_REGEX const errors = require("./errors") -for (const error in errors) { - module.exports[error] = errors[error] -} +// We cannot use dynamic exports, otherwise the typescript file will not be generating it +module.exports.JsErrorTimeout = errors.JsErrorTimeout