Undefined is not an object (evaluating 't.file.blueprint.name')

When playing around with the latest starterkit, I get the following error when clicking on images:

I have the same problem when starting from scratch and trying to add an image file to the textarea by clicking on it like it worked in Kirby 2.

Any ideas what could be wrong on m site?

Is that a fresh Starterkit or have you made any changes?

It’s not modified at all. Just refreshed from GitHub. No changes except creating the panel user.

Is there any more information in the console?

Yes:

[Error] TypeError: undefined is not an object (evaluating 't.file.blueprint.name')
ah — app.js:1:200035
_render — vendor.js:39:31813
r — vendor.js:39:18757
get — vendor.js:39:21376
run — vendor.js:39:22108
on — vendor.js:39:20315
(anonymous function) — vendor.js:39:12159
ae — vendor.js:39:11494

promiseReactionJob

errorHandler (app.js:1:235533)
te (vendor.js:39:11240)
Qt (vendor.js:39:11165)
_render (vendor.js:39:31859)
r (vendor.js:39:18757)
get (vendor.js:39:21376)
run (vendor.js:39:22108)
on (vendor.js:39:20315)
(anonymous function) (vendor.js:39:12159)
ae (vendor.js:39:11494)
promiseReactionJob

[Error] TypeError: undefined is not an object (evaluating 'e.blueprint.tabs')
(anonymous function) — app.js:1:201848
promiseReactionJob

(anonymous function) (app.js:1:202237)
promiseReactionJob

Hm, I can’t make anything out of that. And I can’t reproduce this, works perfectly for me. Does this happen with images on other pages as well?

Yes, it happens with every image. Even with freshly uploaded ones. Im currently setting up an ubuntu reference environment to see if I can reproduce or if it is a Mac OS X Problem.

What is your environment on your Mac? Do you use the built-in server or Mamp or Valet/Valet+, or…?

I am using a local Nginx and PHP7.3 installed with homebrew. I’ve found the problem, it was caused by this rule, which perfectly worked with Kirby 2 but now causes the problems within the panel:

# Cache static files
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|woff2|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf)$ {
    add_header "Access-Control-Allow-Origin" "*";
    access_log off;
    error_page 404 = /index.php;
    log_not_found off;
    expires max;

    add_header Pragma public;
    add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}