Contents
Error: Unable to cast object of type ‘Microsoft.SharePoint.ClientSideFramework.SPClientSideComponentMetadata’ to type ‘Microsoft.SharePoint.ClientSideComponent.SPClientSideComponentMetadata’. Any suggestions? I’m also unable to rollback the solution to any previously working version as I receive the same error there as well.
Are there any issues with SPFX 1.12?
For general issues you are encountering with SPFx 1.12 please report them to the dev-docs issue list. This include other issues with tslib not associated with PnPjs. Appreciate everyone’s help ensuring we are capturing any problems you see so they can be properly tracked and resolved.
Is there a function in tslib in SPFX?
However that function doesn’t exist in the version of tslib that is used by default in spfx. Manually updating the tslib package to 2.1 breaks the whole webpart project. spfx 1.12 runs “TypeScript to v3.7 (via @microsoft/rush-stack-compiler-3.7 v0.2.3)”.
What causes SPFX gulp package solution to fail?
Failure to run the bundle command prior to invoking package-solution will cause the package-solution command to fail, as shown in the OP. This is not exactly obvious. The error message (shown in the OP) prompts the user to ensure they have completed a build — it makes no mention of completing a bundle. Microsoft might want to update that message.
What does invalid app package mean on SharePoint?
Started receiving Valid App Package = No today while trying to update an app package in the catalog. Looking at the unavailable apps view reveals the following error message: Invalid SharePoint App package.
Can anyone help me on how to fix the issue. as per the descriptions, the error are in the Typescript. In the screenshot, i see that you are running the Node v6.9.4 . You should uninstall this Node version and instead install the Node v4.6.0 LTS version.