简体   繁体   中英

Why am I getting "TypeError: Cannot read properties of undefined (reading ‘isEE’)" when accessing Strapi admin panel via nginx reverse proxy?

Recently I've deployed my strapi app using Nginx and when I'm trying to access admin page I'm getting this error

I have no idea what does this error means:

TypeError: Cannot read properties of undefined (reading 'isEE')
    at main.0dc07489.js:8914:25883
    at Generator.next (<anonymous>)
    at it (main.0dc07489.js:8914:25430)

When I'm accessing Strapi app directly by IP and port 1337 everything works fine. I've tried many things like deploying the new Strapi app but I can't figure out what's wrong.

Any ideas what could be causing this error?

We faced a similar issue when we started using the custom PUBLIC_URL parameter and got rid of it when it was returned to an empty string value. I'm not sure it is the same case but just letting you all know about this nuance. Versions - Strapi: 4.5.3, npm: 8.19.2, node: 16.18.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM