faahim / image-import-issue

Error reproducing repo for image importing issue in Gatsby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is just a error reproducing repo created for debugging purpose

When you try and import images in JS and render them on the page, it throws the following error:

./src/path-to/image.png
Module build failed: Error: File Loader

emitFile is required from module system

Open the index.js file under /src/pages directory where an example image is already imported and commented out.

Steps I took to solve the issue:

  • Installed url-loader
  • Installed file-loader

About

Error reproducing repo for image importing issue in Gatsby

License:MIT License


Languages

Language:JavaScript 97.8%Language:CSS 2.2%