Skip to content

Uncaught SyntaxError: Invalid or unexpected token (at main.f878bb6e.js:2:26089) #13167

@sultanfendonus

Description

@sultanfendonus

Admin panel frontend not working after migrating from 4.1.7 to 4.1.8
Blank page showing with this console error in the browser
Uncaught SyntaxError: Invalid or unexpected token (at main.f878bb6e.js:2:26089)
Required System information

  • Node.js version: v16.14.2
  • NPM version: v8.5.0
  • Strapi version: 4.1.8
  • Database: PG
  • Operating system: Ubuntu 20.04

Steps to reproduce the behavior

  • Upgraded the system from 4.1.7 to 4.1.8
  • Build the project
  • After serving via pm2 the backend API working fine but unable to access the login page.

Expected behavior

  • UI should load.

Additional context
If I downgrade to v4.1.7 then it is working fine.
Screenshot 2022-04-21 at 8 14 18 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions