In a previous post I discussed using Strapi to bootstrap your API development , in the original post I initially erroneously instructed users to use the npm i install strapi@alpha
to install stapi. However, after a comment from Jim Laurie, co-founder & CTO of Strapi Solutions, that I should use the Beta branch.
I realised I needed to upgrade my existing project, the upgrade process although relatively smooth there are still a few issues to be made aware of, in case others attempt to do.
Warning
Do not attempt to use npm update
to attempt to update your project
Delete node_modules folder
The first thing to do in your development is develop your node_modules
folder because your are going to completely reinstall and upgrade all packages.
Delete build folder
If you have previously executed strapi dev
or strapi build
, you'll notice a build folder, this will contain the build release of your application, we're going to rebuild this anyway.
Information
You may also want to take this opportunity just to ensure you have excluded checking in this folder in your .gitignore
Update your package.json
We now need to update your package.json file with all the new references.
Eloquent JavaScript, 3rd Edition
A Modern Introduction to Programming
Marijn Haverbeke
Reflects the current state of JavaScript
Buy Now Read ReviewUpdate bootstrap.js
There is a slight change to the bootstrap.js required, if you haven't made any additional changes all you need to do is edit the file.
Build and run
If you have completed all the steps successfully then you should just be able to:
Summary
This should be all the steps you need to take to upgrade your strapi project from the alpha release to the beta release
- What is this Directory.Packages.props file all about? - January 25, 2024
- How to add Tailwind CSS to Blazor website - November 20, 2023
- How to deploy a Blazor site to Netlify - November 17, 2023