React Nextjs: Module parse failed:You may need an appropriate loader to handle this file type,currently no loaders are configured to process this file

Viewed 4064

I am trying to load a pdf file

import placeholder from "../assets/pdf/placeholder.pdf"

And every time the server reloads I get this error: * error - ./assets/pdf/placeholder.pdf Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file)*

1 Answers
Related