diff --git a/client/utils/build-challenges.js b/client/utils/build-challenges.js index 73a03d575af..c6e0e4bac9c 100644 --- a/client/utils/build-challenges.js +++ b/client/utils/build-challenges.js @@ -21,7 +21,7 @@ exports.replaceChallengeNode = () => { const blockNameRe = /\d\d-[-\w]+\/([^/]+)\//; const posix = path.normalize(filePath).split(path.sep).join(path.posix.sep); const blockName = posix.match(blockNameRe)[1]; - const metaPath = path.resolve(META_DIR, `/${blockName}/meta.json`); + const metaPath = path.resolve(META_DIR, `${blockName}/meta.json`); delete require.cache[require.resolve(metaPath)]; const meta = require(metaPath); // TODO: reimplement hot-reloading of certifications