Part URI is not valid per rules defined in the Open Packaging Conventions specification issue with SPFx package
"Part URI is not valid per rules defined in the Open Packaging Conventions specification" is very common issue and everyone who have worked with the SPFx, have faced this issue at least once.
But interesting thing is that, User will not get any information about this error on the terminal or console.
How to resolved "Part URI is not valid per rules defined in the Open Packaging Conventions specification"
Let's discuss root cause of the problem and steps to resolve this error:
- Check your project folder name, if your project folder name have any underscore/space/dash remove them because this is one of a cause behind this issue.
- Check assets you have used in your solutions, check the CSS file, .tsx file, JS file, images, Ts file, font libraries and if they have any underscore/space/dash in the file name remove them.
Let's fixed this issue:
- Remove the underscore/space/dash from project folder name and from css, ts, tsx, js, font library, images.
- gulp clean
- gulp bundle –ship
- gulp package-solution –ship
- Deploy the .sppkg file to the app catalogue
Please refer this blog for Component ID {0} exists in solution {1} already
Thanks!!
Comments
Post a Comment