

SPF019811: Bundle entry output path must be located under the dist folder |
Bundle entry output path must be located under the dist folder
CheckId | SPF019811 |
---|---|
TypeName | BundleEntryOutputPathIsInTheRightLocation |
Severity | CriticalError |
Type | BundleEntry |
Bundle entry must specify a valid output path using the outputPath property. The output file should be located in the dist folder so that it's picked up by the SharePoint Framework tools for further processing.
config.json example
{
"entries": [
{
"entry": "./lib/webparts/helloWorld/HelloWorldWebPart.js",
"manifest": "./src/webparts/helloWorld/HelloWorldWebPart.manifest.json",
"outputPath": "./dist/hello-world.bundle.js",
"configPath": "./dist/hello-world.config.js"
}
],
"externals": { },
"localizedResources": {
"helloWorldStrings": "webparts/helloWorld/loc/{locale}.js"
}
}
"entries": [
{
"entry": "./lib/webparts/helloWorld/HelloWorldWebPart.js",
"manifest": "./src/webparts/helloWorld/HelloWorldWebPart.manifest.json",
"outputPath": "./dist/hello-world.bundle.js",
"configPath": "./dist/hello-world.config.js"
}
],
"externals": { },
"localizedResources": {
"helloWorldStrings": "webparts/helloWorld/loc/{locale}.js"
}
}
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.