Expand Minimize

Bundle entry output path must be located under the dist folder

Bundle entry output path must be located under the dist folder

CheckId SPF010404
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": {
    "@ms/odsp-utilities-bundle": "node_modules/@ms/odsp-utilities-bundle/dist/odsp-utilities-bundle.js",
    "@ms/office-ui-fabric-react": "node_modules/@ms/office-ui-fabric-react/dist/office-ui-fabric-react.js",
    "@ms/sp-client-base": "node_modules/@ms/sp-client-base/dist/sp-client-base.js",
    "@ms/sp-client-platform": "node_modules/@ms/sp-client-platform/dist/sp-client-platform.js",
    "@ms/sp-lodash": "node_modules/@ms/sp-lodash/dist/sp-lodash.js",
    "react": "node_modules/react/dist/react.min.js",
    "react-dom": "node_modules/react-dom/dist/react-dom.min.js",
    "react-dom/server": "node_modules/react-dom/dist/react-dom-server.min.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.