1.11.0 gulp package-solution --ship error
What Version you are running?
- NodeJS: v10.16.0
- NPM: 6.14.6
- @pnp/spfx: 1.11.0
Describe your problem
Upgraded a project with 365 CLI followed all the steps.
gulp serve --nobrowser works fine, the web part show OK
gulp bundle --ship Works OK
gulp package-solution --ship Errors:
[14:51:06] Verifying configuration... [14:51:06] Done! [14:51:06] [14:51:06] Normalizing solution information... [14:51:06] Attempting creating component definitions for {1} manifests [14:51:06] Created component definitions for {1} manifests [14:51:06] config.solution.features not set! Instead generating a feature for each component. [14:51:06] Creating feature for ECG Requester Inbox... [14:51:06] Done! [14:51:06] [14:51:06] Reading custom Feature XML... [14:51:06] Done! [14:51:06] [14:51:06] Validating App Package... [14:51:06] Done! [14:51:06] [14:51:06] Reading resources... [14:51:06] Done! [14:51:06] [14:51:06] Reading Sharepoint Assets & Creating XML... [14:51:06] Error - 'package-solution' sub task errored after 130 ms Cannot read property 'name' of undefined [14:51:06] 'package-solution' errored after 165 ms [14:51:06] [14:51:06] ==================[ Finished ]================== Error - 'package-solution' sub task errored after 130 ms Cannot read property 'name' of undefined [14:51:07] Project dpc-requester-inbox version:0.0.1 [14:51:07] Build tools version:3.12.1 [14:51:07] Node version:v10.16.0 [14:51:07] Total duration:5.25 s [14:51:07] Task errors:1 The build failed because a task wrote output to stderr. Exiting with exit code: 1
What Should I do to make it work?
Thank you for reporting this issue but this repository only covers the pnp/SPFx generator (yo @pnp/spfx) and problems with the generator.
The issue you reported relates more likely to Office 365 CLI which provides the upgrade instructions.
In your case is also could be related to a general issue in the @microsoft/generator-sharepoint which will be supported in the sp-dev-docs repo. Base on your description it seems that it more relates @microsoft/generator-sharepoint version 1.11.0.
This generator is already at version 1.15.0.
Thank you for your understanding.