{"id":"52777d050689a51d","repo":"webpack/webpack","slug":"no-input-filesystem-provided","errorCode":null,"errorMessage":"No input filesystem provided","messagePattern":"No input filesystem provided","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/WebpackOptionsApply.js","lineNumber":1054,"sourceCode":"\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\t// @ts-expect-error Property 'type' does not exist on type 'never'. ts(2339)\n\t\t\t\t\tthrow new Error(`Unknown cache type ${cacheOptions.type}`);\n\t\t\t}\n\t\t}\n\t\tnew ResolverCachePlugin().apply(compiler);\n\n\t\tif (options.ignoreWarnings && options.ignoreWarnings.length > 0) {\n\t\t\tconst IgnoreWarningsPlugin = require(\"./IgnoreWarningsPlugin\");\n\n\t\t\tnew IgnoreWarningsPlugin(options.ignoreWarnings).apply(compiler);\n\t\t}\n\n\t\tcompiler.hooks.afterPlugins.call(compiler);\n\t\tif (!compiler.inputFileSystem) {\n\t\t\tthrow new Error(\"No input filesystem provided\");\n\t\t}\n\t\tcompiler.resolverFactory.hooks.resolveOptions\n\t\t\t.for(\"normal\")\n\t\t\t.tap(CLASS_NAME, (resolveOptions) => {\n\t\t\t\tresolveOptions = cleverMerge(options.resolve, resolveOptions);\n\t\t\t\tresolveOptions.fileSystem =\n\t\t\t\t\t/** @type {InputFileSystem} */\n\t\t\t\t\t(compiler.inputFileSystem);\n\t\t\t\treturn resolveOptions;\n\t\t\t});\n\t\tcompiler.resolverFactory.hooks.resolveOptions\n\t\t\t.for(\"context\")\n\t\t\t.tap(CLASS_NAME, (resolveOptions) => {\n\t\t\t\tresolveOptions = cleverMerge(options.resolve, resolveOptions);\n\t\t\t\tresolveOptions.fileSystem =\n\t\t\t\t\t/** @type {InputFileSystem} */\n\t\t\t\t\t(compiler.inputFileSystem);\n\t\t\t\tresolveOptions.resolveToContext = true;","sourceCodeStart":1036,"sourceCodeEnd":1072,"githubUrl":"https://github.com/webpack/webpack/blob/318421ea8ac81371f5171236a6efb63675576528/lib/WebpackOptionsApply.js#L1036-L1072","documentation":"Error \"No input filesystem provided\" thrown in webpack/webpack.","triggerScenarios":"Thrown at lib/WebpackOptionsApply.js:1054 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide an inputFileSystem when invoking webpack programmatically; the default Node.js filesystem is used when running via the CLI."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"318421ea8ac81371f5171236a6efb63675576528","analyzedAt":"2026-08-03T19:39:56.731Z","schemaVersion":2}