[Solved] The TypeError: Cannot read properties of null (reading 'data') occurs when your first render, your data with that id isn't mounted to the DOM yet.
[Solved] While using Laravel 8, you may face an error. Mainly the error occurs for your PHP version. If you use PHP version lower than 7.3 you may face the error.
This problem is related to a composer configuration when you run the command "composer install" if you need to work with the configuration you already have
What version of PHP are we using? It looks like this problem's happening because of the static typing added to psr/container between v1.0.0 and v.1.1.0 released five days ago to deprecate PHP < 7.2