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

Sharp invocation crashes when presented with videos in images/ folder #128

Closed
matheus23 opened this issue Jul 15, 2020 · 3 comments
Closed

Comments

@matheus23
Copy link
Contributor

Steps to reproduce

Add a video (I used webm and mp4) to the images/ folder.

Running elm-pages build will now error. We can see an error from the sharp output:

[Error: Input file contains unsupported image format]
error Command failed with signal "SIGSEGV".

(yarn tells me elm-pages build exited with SIGSEGV)

A little worse: If we run elm-pages develop, we don't get any error besides some missing import errors:

🚀 elm-pages develop on http://localhost:3000
webpack built 2d56590df3918cc2b233 in 2702ms
✖ 「wdm」: 
ERROR in ./src/Main.elm
Module build failed (from ./node_modules/elm-pages/node_modules/elm-webpack-loader/index.js):
Error: Compiler process exited with error Compilation failed
Dependencies ready!           
Compiling (10)-- MODULE NOT FOUND ------------------------------------------- src/Metadata.elm

You are trying to import a `Pages` module:

6| import Pages
          ^^^^^
I checked the "dependencies" and "source-directories" listed in your elm.json,
but I cannot find it! Maybe it is a typo for one of these names?

    Parser
    Ports
    Regex
    App

Hint: If it is not a typo, check the "dependencies" and "source-directories" of
your elm.json to make sure all the packages you need are listed there!

Fix

This is just an unfortunate error message. A user can fix this by moving video files to the static/ folder.

@dillonkearns
Copy link
Owner

sharp is no longer a dependency with elm-pages 2.0, so this won't be an issue going forward 👍 Thank you for filing the issue!

@matheus23
Copy link
Contributor Author

Congrats Dillon! :)

@dillonkearns
Copy link
Owner

Thank you Philipp!!! 🙏

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