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 with css imports between NPM packages #193

Open
KrisWav opened this issue Sep 19, 2024 · 1 comment
Open

Problem with css imports between NPM packages #193

KrisWav opened this issue Sep 19, 2024 · 1 comment

Comments

@KrisWav
Copy link

KrisWav commented Sep 19, 2024

Hi, I'm using this package inside my own NPM package which is then used in separate project.

For development reasons I'm testing my package locally using npm link. My project then cannot build due to this error:

[vite:css] Failed to find 'vanillajs-datepicker/css/datepicker.css'
  in [
    /path-to-project/css/mixins
  ]

The import looks like this:

@import 'vanillajs-datepicker/css/datepicker.css';

@mymth
Copy link
Owner

mymth commented Sep 28, 2024

I wonder why your builder appears to be compiling vanillajs-datepicker/scss/datepicker.scss despite the "/css/", ".css" in your import statement. (There is a line: @import 'mixins'; in that .scss file.)

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

2 participants