I was following every step from this article about Static Site Generator https://css-tricks.com/css-modules-part-3-react/. The only thing i change from that article is the setting for .babelrc . On presets i use es2015 instead of es2016 and it looks like this
.babelrc
{
"presets" : ["es2015","react"]
}
In the i got this following error
ERROR in Error: Export from "main" must be a function that returns an HTML string
What did i do wrong?
You have to install the preset first, before you can use it.
I can't post comments yet, so I apologize if this doesn't fix the problem.