mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 19:01:05 +08:00
#3780: Do not display wrong warning when loading ".js" or ".json"
This commit is contained in:
parent
887d64b65c
commit
a94df5ee19
@ -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}`);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user