New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB Data Not Imported #67
Comments
I can confirm the same issue with blog template. |
Same issue here. The data does not get populated. I don't know the root cause but it seems to be related to the Strapi version. The data does populate in v4.2 but not 4.5. In addition, when adding the data manually, the homepage slug in the corporate starter codebase is expecting an empty string "" but when adding pages in the GUI, a blank value get set as null in the DB which will load a 404 for the homepage. |
It seems like the CLI is not pulling the template from the correct repo perhaps. I copied the contents from this folder |
Here's the ugliest hackiest workaround (this is on Mac OS Ventura). You have to trick the starter installer to download and execute Strapi v4.4.7 instead of v4.5.5. Why 4.4.7? Because I have determined through trial and error that template importing broke as of version 4.5.0. 😀
Verify that from your previous failed attempts, there's a symlink that looks like this:
Rename the symlink to
Due to a bug (?) in the strapi-starter and strapi-template scripts, it can download an older version of Strapi by specifying something like Now go back into your working directory, let's say ~, and create your app, this time specifying @4.4.7 as Strapi version:
It should download the 4.4.7 code and populate the database, images, etc. more or less correctly. It should launch frontend (Next.js app) and backend (Strapi app) with a Project Information box like this (note Strapi 4.4.7):
Log in at Now migrate to Strapi back-end current version (v4.5.5 as of this writing), as per the migration guides. |
The problem reproduces with TS projects with latest starter boottrap.js doesn't builds to dist folder. I've followed this official guide https://docs.strapi.io/dev-docs/typescript#add-typescript-support-to-an-existing-strapi-project fixed imports and everything works! |
When running
npx create-strapi-app my-app-name --template corporate
and going through the manual setup, the data to build the starter site is not imported into the DB.The tables are created but not populated.
I've tried on several node + npm versions
node: v16.18.1
npm: 8.19.2
The text was updated successfully, but these errors were encountered: