Setting up "amp-jekyll" plugin leads to an error

no idea if this is your problem but did you change YOURDIR?

<link rel="amphtml" href="{{ page.id | prepend: '/YOURDIR' | prepend: site.baseurl | prepend: site.url | append: '.html' }}">