ritz078 / embed-js

🌻 A lightweight plugin to embed emojis, media, maps, tweets, code and more. ✨
https://codesandbox.io/s/Wp5OlNMn
MIT License
1.27k stars 88 forks source link

Cant import .css from dist with Webpack #245

Closed hazzo closed 7 years ago

hazzo commented 7 years ago

Hi, I am having some trouble to import the css file to a Vue app (with Quasar Framework) that I'm working on.

I'am importing it this way: @import "~embed-js/dist/embed.css"

Here it's the error that I am getting:

./~/css-loader?sourceMap!./~/embed-js/dist/embed.css
Module not found: Error: Can't resolve './assets/images'

Thanks!

ritz078 commented 7 years ago

Are you on the latest version. i.e 4.2.3 ?

hazzo commented 7 years ago

Yes on that exact version.

ritz078 commented 7 years ago

Its working for me.

I checked the files and they are present there.

is https://cdnjs.cloudflare.com/ajax/libs/embed-js/4.2.3/embed.css working ?

hazzo commented 7 years ago

Yes with the cdn option is working. The framework I'm using has a loader for webpack. I will try to reinstall and give a feedback.

ritz078 commented 7 years ago

Is the code available anywhere ?

hazzo commented 7 years ago

Not my project sorry :S, but I can give you the link of the frameworks repo: https://github.com/quasarframework/quasar/tree/v0.13/build

ritz078 commented 7 years ago

you may be working on a fork or a branch. If I can see that maybe I can help ?

I don't see any problem with the module as every file is present at the place it should be.

hazzo commented 7 years ago

Sorry the link I gave you isn't working, try this one: https://github.com/quasarframework/quasar

ritz078 commented 7 years ago

Hi @hazzo ,

As far as the CSS file is present in the dist directory, I am sure this is an error with the webpack config.

hazzo commented 7 years ago

Sorry but I couldn't make it work. I opted for using Unicode emojis. Thanks!