pnp / pnp/cli-microsoft365

Enhancement: Update `spfx project externalize` to support SPFx v1.10 and higher

Open
#2,086 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue help wanted keep-open
Dominant language
TypeScript
Stars
1.5k
Forks
413
Avg merge
5d 6h
Merged PRs (30d)
21

Description

Currently the spfx project externalize command only supports up to SPFx v1.9.1, therefore we should add support for newer projects.

image

Error: CLI for Microsoft 365 doesn't support externalizing dependencies of SharePoint Framework projects of version 1.10.0. Supported versions are 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.3, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.3.4, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.8.2, 1.9.1

Current workaround is to change the version property in .yo-rc.json file to be 1.9.1.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running spfx project externalize against an SPFx v1.10 project and inspect the command's version handling. The work is done when projects using SPFx v1.10 and higher can be externalized without changing .yo-rc.json to 1.9.1.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.