diff --git a/lib/core/src/server/serverRequire.js b/lib/core/src/server/serverRequire.js index db47dc4ae2c5..9deb4cba90e9 100644 --- a/lib/core/src/server/serverRequire.js +++ b/lib/core/src/server/serverRequire.js @@ -84,7 +84,7 @@ export default function serverRequire(filePath) { const moduleDescriptor = interpret.extensions[candidateExt]; - if (registerCompiler(moduleDescriptor) === 0) { + if (moduleDescriptor !== null && registerCompiler(moduleDescriptor) === 0) { logger.warn(`=> File ${candidatePath} is detected`); logger.warn(` but impossible to import loader for ${candidateExt}`);