Skip to content

Blank admin panel after running npx create-strapi-app my-project --quickstart #11835

@benitodotcool

Description

@benitodotcool

Bug report

Describe the bug

Hello, I am relatively new to the Strapi community and I want to start a new personal project using the latest version (v4.0.0). I just finished a professional project in v3.6.8 and everything went well.

The problem occurs when I run the command npx create-strapi-app my-project -quickstart (same problem with yarn create strapi-app my-project), my default browser opens a window http://localhost:1337/admin but I have absolutely nothing on the page.

I have tried:

  • rm -rf nodes_modules
  • npm install
  • npm run build
  • npm run develop

Unfortunately nothing changes. (I did the same steps with yarn too)

Steps to reproduce the behavior

  1. Run npx create-strapi-app my-project --quickstart
  2. Or run npx create-strapi-app@latest my-project --quickstart (accorded to [Team/Mod] Derrick on Discord)

Expected behavior

Just have the missing admin panel 😢

Screenshot

Strapi_blank_admin_panel

Code snippets

Here is my package.json:

{
  "name": "strapi-backend-benitodotcool",
  "private": true,
  "version": "0.1.0",
  "description": "A Strapi application",
  "scripts": {
    "develop": "strapi develop",
    "start": "strapi start",
    "build": "strapi build",
    "strapi": "strapi"
  },
  "devDependencies": {},
  "dependencies": {
    "@strapi/strapi": "4.0.0",
    "@strapi/plugin-users-permissions": "4.0.0",
    "@strapi/plugin-i18n": "4.0.0",
    "sqlite3": "5.0.2"
  },
  "author": {
    "name": "A Strapi developer"
  },
  "strapi": {
    "uuid": "9a0fff07-f4c9-45b7-92e1-80c71c9937f7"
  },
  "engines": {
    "node": ">=12.x.x <=16.x.x",
    "npm": ">=6.0.0"
  },
  "license": "MIT"
}

Shouldn't I have more dependencies on Strapi?
In my Strapi v3.6.8 project my dependencies object looked like this:

  "dependencies": {
    "knex": "0.21.18",
    "pg": "^8.7.1",
    "pg-connection-string": "^2.5.0",
    "slugify": "^1.6.1",
    "sqlite3": "5.0.0",
    "strapi": "3.6.8",
    "strapi-admin": "3.6.8",
    "strapi-connector-bookshelf": "3.6.8",
    "strapi-plugin-content-manager": "3.6.8",
    "strapi-plugin-content-type-builder": "3.6.8",
    "strapi-plugin-email": "3.6.8",
    "strapi-plugin-i18n": "3.6.8",
    "strapi-plugin-upload": "3.6.8",
    "strapi-plugin-users-permissions": "3.6.8",
    "strapi-provider-upload-aws-s3": "^3.6.8",
    "strapi-utils": "3.6.8"
  },

System

  • Node.js version: v14.17.5
  • NPM version: 6.14.14
  • Strapi version: 4.0.0
  • Operating system: macOS Big Sur

Additional context

Before v4.0.0 was announced, I had planned to make a GitHub repository with a basic Strapi application (v3.6.8) containing a config/plugins.js file containing

module.exports = ({ env }) => ({
  upload: {
    provider: "aws-s3",
    providerOptions: {
      accessKeyId: env("AWS_ACCESS_KEY_ID"),
      secretAccessKey: env("AWS_ACCESS_SECRET"),
      region: env("AWS_REGION"),
      params: {
        Bucket: env("AWS_BUCKET_NAME"),
      },
    },
  },
});

to make it easier for me to use Strapi for each new project.
Here is the link of this repository

However, when I try to clone this repository and run npm install then npm run develop, I have this problem in my console:
Capture d’écran 2021-12-07 à 12 23 37

I can fix this problem thanks to this post on Stackoverflow.

  1. Better solution.
    Check if your Strapi project is nested within another project that uses babel/webpack. I had some old files in my directory with all my projects. When I removed them, it works.

  2. Workaround solution (With every packages update, it will be back to an earlier version)
    in your strapi folder, go to → node_modules/strapi-admin/webpack.config.js
    locate the line → require.resolve('@babel/preset-env’)
    replace it with [require.resolve('@babel/preset-env'),{ targets: 'defaults' }],
    run the command npm run dev

Could this problem be correlated with the fact that the admin panel does not load in version v4.0.0?

Thanks in advance for any help.

Benitodotcool

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugissue: help wantedseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: core:adminSource is core/admin packagestatus: pending reproductionWaiting for free time to reproduce the issue, or more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions