After migrate with your suggestion, when packaging the solution there is an error
Error - 'package-solution' sub task errored after 171 ms
Cannot read property 'name' of undefined
You must also upgrade the "package-solution.json" file in adding a developer section
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": {
"name": "Your Webart Name",
"id": "47c915dd-b5e5-4c2e-82f3-c6075c21b3bb",
"version": "1.0.0.0",
"includeClientSideAssets": true,
"isDomainIsolated": false,
"developer": {
"name": "",
"websiteUrl": "",
"privacyUrl": "",
"termsOfUseUrl": "",
"mpnId": ""
}
},
"paths": {
"zippedPackage": "solution/process-guide.sppkg"
}
}
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Try to add developer section in package-solution.json to resolve this issue:
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": {
"name": "jerrytest-client-side-solution",
"id": "5ec36f58-4fce-4371-9000-805fc3041c31",
"version": "1.0.0.0",
"includeClientSideAssets": true,
"isDomainIsolated": false,
"developer": {
"name": "",
"websiteUrl": "",
"privacyUrl": "",
"termsOfUseUrl": "",
"mpnId": ""
}
},
"paths": {
"zippedPackage": "solution/jerrytest.sppkg"
}
}
After adding the developer section try to rerun gulp package-solution should be working.
@Jerry0527 Look at their OP... it's already there.
@MichelLaplane I see a similar issue... not sure if there's a regression... investigating...
Update: have you cleared your node_modules folder and reinstalled everything via npm install?
@andrewconnell,
Look at the error message:
Error - 'package-solution' sub task errored after 171 ms
Cannot read property 'name' of undefined
You must also upgrade the "package-solution.json" file in adding a developer section
Clearly, the error message specify the developer section, right ?
I suggest OP to double check this point and in my side, it's working as expected.....
Hi Andrew,
Yes it is just the developer section that should be added from an old project when you migrate to 1.11.
The issue i have raised was just to point out that this operation must be added to the post "How to update a project from 1.10 to 1.11".
Regards
@MichelLaplane said:
Yes it is just the developer section that should be added from an old project when you migrate to 1.11. The issue i have raised was just to point out that this operation must be added to the post "How to update a project from 1.10 to 1.11".
Correct, but that is already in that section. Immediately after the section, you reference, there is an important callout block that explicitly states this, and provides a link with details on it. The upgrade section isn't intended to be complete instructions, rather an overview. That's why you don't see all the packages listed that you need to upgrade.
@Jerry0527 said:
You must also upgrade the "package-solution.json" file in adding a developer section. Clearly, the error message specify the developer section, right ?
Correct, but if you look at the OP in this thread, the submitter clearly added the developer section to the package-solution.json file.
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