Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sirvantos's avatar

Laravel Nova Error js TypeError: e.cards is undefined

As soon as i moved project (based on official Nova upgrade guide) on Nova 3.18.0 (from 3.8.0) i have faced with js error TypeError: e.cards is undefined on Dashboard.

my steps:

  • coping nova 3.18.0 to project nova folder
  • php artisan nova:publish
  • php artisan view:clear

TypeError: e.cards is undefined render http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 _render http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 mount http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 get http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 run http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 fn http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 ee http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 Gt http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 promise callbackUt http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 ee http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 update http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 update http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 notify http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 set http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 set http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 e http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 x http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 _invoke http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 t http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 o http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 o http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 promise callbacko http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 default http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 t http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 default http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 fetchDashboard http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 created http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 It http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 en http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 _init http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 a http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 componentInstance http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 init http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 n http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 d http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 d http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 Ii http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 _update http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 mount http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 get http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 run http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 fn http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 ee http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 Gt http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 promise callbackUt http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 ee http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 $nextTick http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 e http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 x http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 _invoke http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 t http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 o http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 o http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 promise callbacko http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 default http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 t http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 default http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 l http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 m http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 r http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 yt http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 confirmTransition http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 transitionTo http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 init http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 beforeCreate http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 It http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 en http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 _init http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 wn http://localhost:8080/vendor/nova/vendor.js?id=295263d58188905abbc7:1 value http://localhost:8080/vendor/nova/app.js?id=94fc3e68a62d1820e9e4:1 http://localhost:8080/dashboards/main:214

Not sure what could i miss here......

0 likes
11 replies
wingly's avatar

Did you run php artisan nova:publish after upgrading?

sirvantos's avatar

php artisan nova:publish

as soon as i rollback

/vendor/nova/app.js /vendor/nova/vendor.js

from 3.8.0 it works again

wingly's avatar

just checking did you run php artisan view:clear after the publish?? :)

sirvantos's avatar
  • coping nova 3.18.0 to project nova folder
  • php artisan nova:publish
  • php artisan view:clear
wingly's avatar

Maybe try to go one by one through the releases instead of going directly to 3.18 from 3.8 go to 3.9 first and see when it starts to break?

sirvantos's avatar

will do.

Do use laravel nova in your projects ? What versions ?

sirvantos's avatar

in my case it was the response cache for cards ajax (nova ajax endpoint). The cards ajax response format was been changed for newest nova versions, so as soon as you migrate to newset version you need to drop the cache....

2 likes
Jonathan Doelan's avatar

@sirvantos Can you please describe how to delete this response cache? I’ve tried to delete storage/framework/cache folders but with no success …

Maria30's avatar

Hi @sirvantos First you need to edit your composer.json file and chance nova version Then you need to run

  • composer update

  • php artisan nova:publish

  • php artisan view:clear

1 like

Please or to participate in this conversation.