Registering asset in plugin

I am building a plugin which adds all agenda related views. I need some javascript for the headers to work and I am registering it in my plugin provider.
public function packageBooted(): void
{
  FilamentAsset::register([
      Js::make('deet', __DIR__ . '/../resources/dist/syncscroll.js'),
  ], package: 'uxit/deet');
}


However it says that the resource is not found in the network tab in the browser. It is showing up in the tree of html elements but I am doing something wrong with specifying the path to the resource.

Help would really be appreciated!
Screenshot_2024-07-04_at_16.30.40.png
Screenshot_2024-07-04_at_16.30.50.png
Screenshot_2024-07-04_at_16.33.53.png
Was this page helpful?