Skip to content

Dev server ​

TL;DR: Run rspfx dev to preview your web parts on port 4321. Use local preview for UI work and workbench mode for SharePoint APIs.

RSPFx serves your bundles on one port. You get hot rebuilds on save. You pick the mode with your tenant setting.

Troubleshoot ​

SymptomFix
Blank page or NET::ERR_CERT_AUTHORITY_INVALIDcert not trusted - run trust step and restart browser
Load debug scripts shows on every reloadcert or network access not allowed - trust cert and allow access
Bundle 404 at https://localhost:4321/dist/*bundle name does not match entryModuleId - check folder and config/config.json
Port in usestop other dev servers or change port in config

For flag and env var details, see ../../reference/commands.md. For pipeline details, see ../../reference/architecture.md.

Released under the MIT License.