Sp-dev-docs: SPFx 1.5.0 - Impossible to build an extension project with --ship

Created on 22 Jun 2018  路  8Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [ ] Question
  • [ ] Typo
  • [X] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

The solution should build correctly but it doesn't, even with a vanilla project.

Observed Behavior

image

Steps to Reproduce

  • Create a vanilla SPFx 1.5.0 project ApplicationCustomizer extension (did not try with other kinds).
  • Build/bundle/package your project in production mode (--ship)

Thanks for your contribution! Sharing is caring.

spfx-general tracked bug-suspected

Most helpful comment

yes it does with gulp package-solution --ship but I notice that there are missing steps in the build that generates incomplete package

All 8 comments

@waldekmastykarz Thank you for follow-up, here is a new topic which is more generic than the previous one

Despite the error message at the end, if you execute gulp bundle --ship, is the .sppkg generated or not?

yes it does with gulp package-solution --ship but I notice that there are missing steps in the build that generates incomplete package

I noticed that you're running SPFx in Docker. Could you check if you get the same result if you ran it on your host, just to eliminate Docker as the possible culprit?

Yes actually I tested without docker at first

Some further information: I took the helloworld webpart and added some connection to the SharePoint lists as per the tutorial. It still gives the error when running gulp bundle --ship however if you then run gulp package-solution --ship it generates no error and works fine if you publish it to the app catalog.

I close this issue since the error message is not blocking

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonthenerd picture jonthenerd  路  3Comments

StfBauer picture StfBauer  路  3Comments

mikeparkie picture mikeparkie  路  3Comments

ken-harris picture ken-harris  路  3Comments

acksoft picture acksoft  路  3Comments