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

Missing "./lib/Timeline.css" specifier in "react-calendar-timeline" package #947

Open
RazaShehryar opened this issue Dec 10, 2024 · 2 comments

Comments

@RazaShehryar
Copy link

Describe the bug
I am facing an issue on react 18 with vite bundler. Whenever I import the styling .css file, it throws an error

[vite] Internal server error: Missing "./lib/Timeline.css" specifier in "react-calendar-timeline" package. I am using vite 6.0.3 in my project.

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Library Version
Please provide version of library in which this bug is occurring.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@anushree-more123
Copy link

Updated the import statement for the CSS file is as follows:

import 'react-calendar-timeline/styles.css';
This change fixes the error and works perfectly.

@nimeshmaharjan1
Copy link

Updated the import statement for the CSS file is as follows:

import 'react-calendar-timeline/styles.css'; This change fixes the error and works perfectly.

image

is this how its supposed to look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants