Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

3
Votes

I have followed even the most basic examples, and I'm still getting this issue. 

I'm on macOS 12.2 and I keep getting this error:

JSON.parse: unexpected character at line 1 column 1 of the JSON data ./modules/pdfviewer.js/t.prototype.loadSuccess@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:1513817 ./modules/pdfviewer.js/i.prototype.loadSuccess@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2101065 ./syncfusion-blazor-extended.js/e/<@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2800360 d@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2372 ../node_modules/regenerator-runtime/runtime.js/l/s._invoke@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2126 ../node_modules/regenerator-runtime/runtime.js/b/</<@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2735 asyncGeneratorStep@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2790004 a@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2790241 ./syncfusion-blazor-extended.js/_asyncToGenerator/</<@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2790317 ./syncfusion-blazor-extended.js/_asyncToGenerator/<@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2790163 ./syncfusion-blazor-extended.js/extended.invokeMethod<@https://localhost:7001/_content/Syncfusion.Blazor.PdfViewer/scripts/syncfusion-blazor-pdfviewer.min.js:1:2801037 beginInvokeJSFromDotNet/s<@https://localhost:7001/_framework/blazor.server.js:1:3501 beginInvokeJSFromDotNet@https://localhost:7001/_framework/blazor.server.js:1:3475 _invokeClientMethod/<@https://localhost:7001/_framework/blazor.server.js:1:71783 _invokeClientMethod@https://localhost:7001/_framework/blazor.server.js:1:71769 _processIncomingData@https://localhost:7001/_framework/blazor.server.js:1:69811 Tt/this.connection.onreceive@https://localhost:7001/_framework/blazor.server.js:1:64211 connect/</o.onmessage@https://localhost:7001/_framework/blazor.server.js:1:48527 EventHandlerNonNull*connect/<@https://localhost:7001/_framework/blazor.server.js:1:48378 connect@https://localhost:7001/_framework/blazor.server.js:1:47894 _startTransport@https://localhost:7001/_framework/blazor.server.js:1:57515 _createTransport@https://localhost:7001/_framework/blazor.server.js:1:56084 _startInternal@https://localhost:7001/_framework/blazor.server.js:1:53933 async*start@https://localhost:7001/_framework/blazor.server.js:1:51198 _startInternal@https://localhost:7001/_framework/blazor.server.js:1:66087 _startWithStateTransitions@https://localhost:7001/_framework/blazor.server.js:1:65487 start@https://localhost:7001/_framework/blazor.server.js:1:65151 Qn@https://localhost:7001/_framework/blazor.server.js:1:129793 Gn@https://localhost:7001/_framework/blazor.server.js:1:127660 async*@https://localhost:7001/_framework/blazor.server.js:1:131412 @https://localhost:7001/_framework/blazor.server.js:1:131418

and I've tried it so many different ways, even using several examples from Syncfusion. The way I tried to this to get this error was to do this:

<SfPdfViewerServer @ref="Viewer" DocumentPath="@DocumentPath" Width="100%" Height="100%" />

@code {
private string DocumentPath { get; set; } = "wwwroot/Result.pdf";
}

I have tried every single example of the PDF Viewer that Syncfusion has had on these forums and they all give the same error. I think there is an issue with running this on macOS.