Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem loading base.css with webpack #1279

Open
acyment opened this issue May 10, 2024 · 1 comment
Open

Problem loading base.css with webpack #1279

acyment opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@acyment
Copy link

acyment commented May 10, 2024

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:

  • Framework: React 18.3.1
  • Node: 20.13.1
  • Device: MacBook Pro 14 2021
  • OS: MacOS 14.4.1 (code is actually running in Docker)
  • Browser: N/A
@acyment acyment added the bug Something isn't working label May 10, 2024
@mihar-22
Copy link
Member

mihar-22 commented Jun 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants