-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of null (reading 'dataset') #1495
Comments
@JeroenBoesten, I dug into this and it lead me to believe this may be something to do with SSR rendering and accessing an element that has not yet been rendered on the page. Could you please search your project for uses of I have a feeling it could be used in the Could you also share your |
Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel to open up a new issue if you're still experiencing this. |
Jetstream Version
5.0.5
Jetstream Stack
Inertia
Laravel Version
11.6.0
PHP Version
8.3
Database Driver & Version
No response
Description
We're using jetstream and had a issue when we were loading in a certain amount (in our case 100 Resources on a overview) of data we got the following javascript error in the console:
After some research I stumbled upon this laracast item: https://laracasts.com/discuss/channels/inertia/inertiajs-vuejs-3-typescript-got-error-cannot-read-properties-of-null-reading-dataset and tried the mentioned solution of switching the order of the script tags in the app.blade.
Before:
After:
In our case this seemed to have resolved the issue, which got me wondering if there is a reason this is not the default in the jetstream
app.blade.php
file.Steps To Reproduce
Unfortunately I did not find the specific root cause or trigger to make a public reproducable repository.
The text was updated successfully, but these errors were encountered: