The SharePoint team has released a new version of SPFx (SharePoint Framework Released 1.9.1)
The changes alredy mentioned here:
- General Availability of Library components
- Tooling move from WebPack 3 to WebPack 4
- Graph API and 3rd party API polishing for Microsoft Teams, mobile and desktop clients
- Isolated web part model supported in Teams
- Teams Integration Improvements
The process of upgraded is mentioned here.
Is important to get the last version of Office 365 CLI, execute the next command:
npm install -g @pnp/office365-cli@latest
Then, go to your project directory.
o365 spfx project upgrade --output md > report.md
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/1-6.png?w=899)
Navigate to the report, and copy the commands are mentioned.
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/2-5.png?w=1024)
Execute the commands are previously copied.
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/3-4.png?w=1024)
Keep calm please!! your project is updating.
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/4-5.png?w=1024)
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/5-4.png?w=929)
Look at the file package.json on your project to saw what dependencies are updated.
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/6-3.png?w=488)
Now, the final test…. please let it work!!
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/7-4.png?w=836)
Come on….. really? so, what happend with our webpart? an specific dependencies is not updated, so, just let me repair this error…. Execute the next command.
npm install @microsoft/rush-stack-compiler-3.2
npm install -g typescript@3.2.4
npm uninstall @microsoft/rush-stack-compiler-2.9
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/8-4.png?w=1024)
Yeahhhhh!! our project is already run….
gulp serve
![](https://keepcalmlovesharepoint.files.wordpress.com/2019/08/9-2.png?w=920)
Reference:
Comments
Post a Comment