New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Application Customizer to existing Web Part Project causes web parts to not be deployed #3219

coreyroth opened this Issue Jan 8, 2019 · 4 comments


None yet
5 participants
Copy link

coreyroth commented Jan 8, 2019


  • Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

This issue occurs when adding an application customizer using yo to an existing SPFx project that has a web part in it. When you add the application customizer, the Web Parts are no longer deployed.

Observed Behavior

After the application customizer is added to the project, the Web Part is no longer deployed (the application customizer is deployed).

Steps to Reproduce

  1. Create a new SPFx project (occurs in 1.6 and 1.7) with a web part. Default settings are fine.
  2. Deploy your project, verify that the web parts is present.
  3. Use yo to add an application customizer to the project.
  4. Increment version in package-solution.json
  5. Deploy new version to app catalog an install update on your site.
  6. The application customizer will be present. The web parts will no longer be deployed.

GitHub Repo

My repo below shows the issue.


This is caused by the fact that web parts do not require a feature entry in package-solution.json. When you add an application customizer, it creates a feature entry and then the web parts are not deployed. In this case, when you run yo to add the application customizer, it should add the component ids of any existing web part to the feature.

Warnings should also be provided to users as to avoid having multiple features which causes issues with the wrong version of code being loaded as shown in issue #3199.


This comment has been minimized.

Copy link

msft-github-bot commented Jan 8, 2019

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.


This comment has been minimized.

Copy link

coreyroth commented Jan 8, 2019

Here is a post detailing the work-around for when this occurs.


This comment has been minimized.

Copy link

patmill commented Jan 8, 2019

@coreyroth - were you using the 'skip feature activation' flag or not?


This comment has been minimized.

Copy link

VesaJuvonen commented Jan 8, 2019

I'll answer on the question... the sample which @coreyroth provided is not using tenant scoped deployment (aka skip feature activation) and therefore requires a solution to be installed on a site. Basically, a developer is looking to deploy two web parts and one application extension to a single site. That should work and we'll absolutely need to have a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment