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

Style loading result in 404 #152

Open
MantarySlayer opened this issue Jun 13, 2022 · 4 comments
Open

Style loading result in 404 #152

MantarySlayer opened this issue Jun 13, 2022 · 4 comments
Labels
question Further information is requested

Comments

@MantarySlayer
Copy link

I'm trying to import style as you said in your docs :

<style>
@import '[email protected]/vue-datepicker/dist/Datepicker.css';
</style>

but when I'm refreshing my page, in console, I got this error :
GET https://my-url/[email protected]/vue-datepicker/dist/Datepicker.css [HTTP/1.1 404 Not Found 32ms]

FYI, css-loader is installed and work with others css, but I think it's about the link to css file

@MantarySlayer
Copy link
Author

And when I'm trying with sass file, I got 404 too

@MantarySlayer
Copy link
Author

MantarySlayer commented Jun 13, 2022

I found that trying to do :

import '@sum.cumo/vue-datepicker/src/styles/style.scss'

in the same file where I import the date-picker works. Maybe need a review / fix about it, or I'm doing something wrong but don't see the problem.

But the style still don't work. It's imported, but not applied to the date picker, which result into this :
image

@MrWook
Copy link
Collaborator

MrWook commented Jun 15, 2022

For me it seems like you are missing the configuration to resolve modules. I'm not sure but i think you need to enable options: { modules: true, }, in the css loader 🤔
Did you try to import it inside the script tag? This should normally work 🤔

@MrWook MrWook added the question Further information is requested label Jun 15, 2022
@MantarySlayer
Copy link
Author

For ccs loader, I don't really know, I'm on a project and I never seen how it really works. I'll look for it.

For import, thing is my imports are in JS files that work as a bundle, with many imports and we import the JS file we need, so we don't load everything.

Here is my import in bundle :
image

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

No branches or pull requests

2 participants