qrcode js should be in the libraries.yml file.
Currently it is defined in hook_library.
Though we are not using this currently, should we remove this altogether given it requires you to add inline js?
I tried a lot but could not find any info on how to add inline js in drupal 8.