Failed to load module script #1728
Unanswered
sohailAhmeddev
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Does the Remark42 demo work for you on |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to integrate remark42 in my next js app but was unable to do so.
here is my configuration
<script
dangerouslySetInnerHTML={{
__html:
var remark_config = { host: 'http://localhost:8080', site_id: 'remark', components:['embed'] }
}}
></script>
<script
dangerouslySetInnerHTML={{
__html:
!function (e, n) { for (var o = 0; o < e.length; o++) { var r = n.createElement("script"), c = ".js", // Update the file extension to ".mjs" d = n.head || n.body; "noModule" in r ? (r.type = "module") : (r.async = !0), (r.defer = !0), (r.src = remark_config.host + "/web/" + e[o] + c), d.appendChild(r); } }(remark_config.components || ["embed"], document);
,}}
></script>
Beta Was this translation helpful? Give feedback.
All reactions