Server Side Rendering Images
See original GitHub issueEven though the docs do a good job of explaining server side rendering clearly and effectively.
Unfortunately, the images throw an error when rendered on the server side.
I am using react-redux and redux-thunk (default) middleware with react-router.
I am curious as to what is causing this error:
SyntaxError: /~/src/img/logo.png: Unexpected character '�' (1:0)
Thanks in advance, Chris
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to render images with react on server side?
How can I render images and css files on server side with React? Here is my server code: const express = require('express') const...
Read more >There is no Wrong Way to Render an Image - LinkedIn
When you talk to most people about rendering an image, ... There are generally two types of rendering, client-side and server-side.
Read more >Server-Side Image Rendering with Express Handlebars
In this article, I will show you a quick way to handle images when doing server-side rendering. Just to note, I am using...
Read more >Render html and next Image from Server Side Rendering
Hello community !!! I want to display a header with some text and a Image (obtaining its src) all with Server Side Rendering...
Read more >Server Side Rendering - Cross Platform - Apache ECharts
Server Side Rendering. Normally, Apache ECharts TM renders the chart dynamically in the browser and will re-render after user interactions.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You’re looking for file-loader. @kentcdodds’ Webpack course is free on Egghead.io this weekend too: https://egghead.io/courses/production-webpack-working-title
file-loader gives you back a URL to the external asset. If you need it in base64 form, then you want url-loader.
But regardless, this isn’t the right place for this kind of support. Please ask over on Stack Overflow or Reactiflux (which has a good webpack channel).