Skip to main content
Version: 1.1.0

Installation

SpartanFX is published to a private Azure Artifacts feed. Point the @spartanfx scope at the feed, authenticate, then install.

1. Add .npmrc to your project root

registry=https://registry.npmjs.org/
@spartanfx:registry=https://pkgs.dev.azure.com/ProgeSwissProducts/_packaging/SpartanFX/npm/registry/
always-auth=true

2. Authenticate

vsts-npm-auth -config .npmrc
info

If you don't have it yet: npm install -g vsts-npm-auth

3. Install

npm install @spartanfx/react

Peer dependencies

SpartanFX declares React and the Microsoft/Fluent stack as peer dependencies so it shares a single copy with your host app. At minimum you need:

npm install react@^17 react-dom@^17 @fluentui/react@^8

The /spfx entry additionally expects @pnp/sp, @pnp/graph, and @microsoft/sp-webpart-base (already present in an SPFx project). See Architecture for which peers each entry point needs.

Next

Continue to the Quick Start to render your first component.