vidstack / player

UI components and hooks for building video/audio players on the web. Robust, customizable, and accessible. Modern alternative to JW Player and Video.js.
https://vidstack.io
MIT License
2.15k stars 126 forks source link

Problem loading base.css with webpack #1279

Closed acyment closed 3 months ago

acyment commented 4 months ago

Current Behavior:

When I try to follow the docs for React-HLS-CSS I get the following error: Module not found: Error: Package path ./player/styles/base.css is not exported from package /app/node_modules/@vidstack/react (see exports field in /app/node_modules/@vidstack/react/package.json) when importing like this: import '@vidstack/react/player/styles/base.css';

I use Webpack 5

Expected Behavior:

Successful compilation

Steps To Reproduce:

  1. Add the line import '@vidstack/react/player/styles/base.css
  2. Try to run using webpack devserver

Environment:

mihar-22 commented 3 months ago

I can't repro, it is included in exports. If you can provide me a repro that I can check it out.