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

Build silently ignores required images #452

Open
Tanneguy opened this issue May 9, 2020 · 1 comment
Open

Build silently ignores required images #452

Tanneguy opened this issue May 9, 2020 · 1 comment

Comments

@Tanneguy
Copy link

Tanneguy commented May 9, 2020

Is this a bug report?

Yes

Environment

  1. node -v: v13.2.0
  2. npm -v: 6.13.7
  3. yarn --version (if you use Yarn):
  4. npm ls create-elm-app -g (if you haven’t ejected):
    /home/me/.nvm/versions/node/v13.2.0/lib
    └── [email protected]

Then, specify:

  1. Operating system:
    Description: Ubuntu 19.10
    Codename: eoan

  2. Browser and version (if relevant):
    not relevant (build issue)

Steps to Reproduce

git clone https://github.com/Tanneguy/bug1.git   
cd bug1 
elm-app build

Expected Behavior

My aim is to use images in my app.
I followed the (especially well-hidden) directive of using the 'required:' prefix in the src attibute value for the img tag. I then foremost expected the images to appear in the app.

As it turned out, not all media are imported during the build.
I expected

  1. the build/media/static folder contains
  • buggy.[hash].png
  • nobug.[hash].png
  1. If an import did not succeed - because of the file itself, for instance,
    an error message explains what happened

Actual Behavior

  1. Only one png was imported, the other one seemed simply ignored
  2. Compiled successfully message

Reproducible Demo

as explained in the Steps to Reproduce

@halfzebra
Copy link
Owner

Hi @Tanneguy!

Thanks for reporting this 👍

It looks like there might be an issue with the loader we use to provide this feature. I'll have a look and let you know if there's a solution.

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