Files in node_modules should never be referenced directly in the project as that’s not how pcakages are meant to be used. Ideally the files should be getting compiled into your own files using imports and/or a bundler. If you aren’t comfortable with using bundlers and aren’t using very many packages you could instead use CDN or copy/paste the dist files directly into your project. Also, due to it’s normally large size, node_modules shouldn’t ever be tracked but instead managed with a package manager.