> For the complete documentation index, see [llms.txt](https://docs.blockend.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockend.com/troubleshooting/next-js-issues.md).

# Next js issues

## 1. Self is not defined or HTMLElement not defined

You may encounter Server Error... ReferenceError: self is not defined in your Next JS app, this is because blockend requires web apis to work and the web apis are not available on the server side when next js renders a page, in order to avoid this you can start by importing the Blockend Widget like below

<pre><code><strong>const Blockend = dynamic(() => import("blockend"), {
</strong>  ssr: false,
});
import "blockend/dist/style.css";
</code></pre>
