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

Incorrect output on post #1

Closed
barranger opened this issue Feb 23, 2017 · 1 comment
Closed

Incorrect output on post #1

barranger opened this issue Feb 23, 2017 · 1 comment
Labels

Comments

@barranger
Copy link

After going through the tutorial on your blog, the blog index is working, however I'm getting the following output when clicking on the individual post:

image

@jotto jotto added the bug label Feb 25, 2017
@jotto
Copy link
Collaborator

jotto commented Feb 25, 2017

Thank you for filing the issue.

It looks like this broke as of version 0.8.0 of create-react-app, because since then they're using the url-loader as the default loader: facebook/create-react-app#1059

Their default loader be overridden by prefixing a ! to the beginning of the dynamic require context:

before

const webpackRequireContext = require.context('markdown-with-front-matter!./_posts', false, /\.md$/);

after

const webpackRequireContext = require.context('!markdown-with-front-matter!./_posts', false, /\.md$/);

Thanks again - I've updated the blog post: https://www.prerender.cloud/blog/2016/10/20/create-react-app-blog

@jotto jotto closed this as completed Feb 25, 2017
jotto added a commit that referenced this issue Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants