Conflict: two packages included in the app (templating-compiler and pnyx:static-html)

i encountered this problem when trying to use SSR on my meteor app. i cannot find any valid answer on this problem. So i solved it myself.

clone https://github.com/meteor/blaze/tree/master/packages/static-html on to your local packages folder.
go to static-html.js
change this:

Plugin.registerCompiler({
  extensions: ['html'],
  archMatching: 'web',
...

to this

Plugin.registerCompiler({
  filenames: ['main.html'], //our main html file
  archMatching: 'web',
...

And we’re good to go. We only need static-html on specific pages like main.html, not all html files, so this will solve our problem.