This repository has been archived by the owner on Jan 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 492
Loading image from public folder seems to cause error #69
Comments
It comes with the recent update. For faster rebuilds, only files inside src are processed by Webpack. You need to put any JS and CSS files inside src, or Webpack won’t see them. |
Yes as @Havret says, this is a new decision by |
guys even i place a img folder in the /src iam still haaving the same issues /src/img/img-examples.jpg and i tried importing the imgae using sass |
Same as @ayepRahman, you find a way ? |
guys you have to give a path relative to where your style.css and not relative to sass file. Because .css file is the one that is being used by index.html when loading the application. |
@ayepRahman I'm same issue. |
This was referenced Apr 26, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Module not found: You attempted to import
../../../public/assets/logo.png
which falls outside of the projectsrc/
directory. Relative imports outside ofsrc/
are not supported. You can either move it insidesrc/
, or add a symlink to it from project'snode_modules/
.This use to work before the latest commit. I have images that get referenced in my scss files. Since this doesn't work now, is there an alternative to how to reach image in public folder?
The text was updated successfully, but these errors were encountered: