jfcere / ngx-markdown

Angular markdown component/directive/pipe/service to parse static, dynamic or remote content to HTML with syntax highlight and more...
https://jfcere.github.io/ngx-markdown
MIT License
1.06k stars 182 forks source link

Nginx configuration. ERROR Error: renderer 'ɵNgxMarkdownRendererExtendedForExtensions' does not exist #505

Closed kagannikita closed 6 months ago

kagannikita commented 6 months ago

Hi, everyone! I used ngx-markdown in angular 17. In localhost works without errors. But in nginx deploy I got this error: ERROR Error: renderer 'ɵNgxMarkdownRendererExtendedForExtensions' does not exist. I think problem in nginx configuration because it doesn't convert md to html. My nginx config: events{} http { charset utf-8; source_charset utf-8; }

wmehanna commented 6 months ago

I'm serving the project (no nginx) on my pc, I have the same issue. i have the latest version of angular.

ERROR Error: renderer 'ɵNgxMarkdownRendererExtendedForExtensions' does not exist at marked.esm.js:2174:31 at Array.forEach (<anonymous>) at Marked.use (marked.esm.js:2106:14) at marked.use (marked.esm.js:2384:20) at MarkdownService.parseMarked (ngx-markdown.mjs:293:20) at MarkdownService.parse (ngx-markdown.mjs:186:29) at ngx-markdown.mjs:533:51 at Generator.next (<anonymous>) at asyncGeneratorStep (asyncToGenerator.js:3:1) at _next (asyncToGenerator.js:22:1)

jfcere commented 6 months ago

My guess is that you guys are using a marked version that is not supported yet. As per the documentation, be sure to use marked v9.

kagannikita commented 6 months ago

@jfcere I have this version "marked": "^12.0.0", but I got error or only v9 can help

jfcere commented 6 months ago

@kagannikita you need to rollback marked to version 9 to fix the issue.