ReferenceError: window is not defined

Hi,

My name is Raj, I am using Next.js on top of React.js and I get the error ReferenceError: window is not defined. And @syncfusion/ej2-base/dist/ej2-base.umd.min.js is using window How Can I solve that.


12 Replies

GV Gokulraj Varatharajan Syncfusion Team April 11, 2022 01:18 PM UTC

Hi Dharaksinh,


We have Validated your query and we have considered this as a bug at our end it will be included with our upcoming weekly patch release which is scheduled on 12th April 2022. So, we request you to keep track of the status through the below feedback link.


Feedback: https://www.syncfusion.com/feedback/34097/need-to-resolve-the-script-error-while-rendering-ssr-on-nextjs-in-latest-version


We appreciate your patience until then.


Regards,

Gokul




GV Gokulraj Varatharajan Syncfusion Team April 13, 2022 04:29 AM UTC

Hi Dharaksinh,


Thanks for being patience.


We are glad to announce that our weekly patch release v20.1.48 has been rolled out successfully. The reported bug has been fixed in this release. As a result, we recommend you upgrade to the latest version of our Syncfusion package to avail this fix.


Release Notes: https://ej2.syncfusion.com/react/documentation/release-notes/20.1.48/?type=all


Kindly check the reported defect in the latest version and get back to us if you need any further assistance.


Regards,

Gokul



PJ Paul Jan December 10, 2022 12:15 PM UTC

I also get this same error when refreshing my browser page in my documenteditor (when using nextjs development mode with npm run dev). Is this something that can be a potential bug that is generated but overlooked? It says :

Server Error

ReferenceError: navigator is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window."




JS Jamuna Sundaram Syncfusion Team December 14, 2022 03:59 PM UTC

Hi Paul,


Currently ,we are evaluating your reported scenario. Since,
this error occur due to the nextjs have released a new feature in the latest version .So We need some additional time validate on this issue And we will update further details on 19 December 2022.


We appreciate your patience until then.

Regards

Jamuna Sundaram



DS Dhanush Sekar Syncfusion Team December 21, 2022 04:57 AM UTC

Hi Paul,


We need additional timeline to validate this issue. We will update further details on this by December 22, 2022


Regards,

Dhanush Sekar



DS Dhanush Sekar Syncfusion Team December 23, 2022 09:14 AM UTC

Hi Paul,


We have confirmed the reported issue as a defect and logged a defect report. We will fix this issue in our EJ2 patch release, which is scheduled for the third week of January.

 

You can track the status of the bug through the below feedback link:

https://www.syncfusion.com/feedback/39992/referenceerror-navigator-is-not-defined

 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”


Regards,

Dhanush Sekar



PJ Paul Jan January 9, 2023 04:09 PM UTC

I also found a new bug which broke my editor. The error message occurred when I was setting up the import functionality for different document formats (such as docx formats). example2.png


I already tried deleting the code for the import, but the error is still there. 



KM Kavitha Muralitharan Syncfusion Team January 10, 2023 02:32 PM UTC

Hi Paul,


Currently ,we are evaluating your reported scenario and will update the details by January 11, 2023.


Regards,

Kavitha M




KM Kavitha Muralitharan Syncfusion Team January 11, 2023 03:18 PM UTC

Hi Paul,


For further validation, can you please share with us the sample document that you try to import at your end? It will help us to find the exact root cause and to provide the appropriate solution at the earliest possible time.


Regards,

Kavitha M



KM Kavitha Muralitharan Syncfusion Team January 23, 2023 02:19 PM UTC

Hi Dharaksinh,



we are glad to announce that our patch release (v20.4.44) is rolled out successfully. In this release, we have added the fix for the reported issue.


Please upgrade to the latest version packages to resolve this issue.


https://www.npmjs.com/package/@syncfusion/ej2-documenteditor

https://www.npmjs.com/package/@syncfusion/ej2-react-documenteditor


NuGet link:

https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.Core/

https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.MVC5/


Feedback Link: https://www.syncfusion.com/feedback/39992/referenceerror-navigator-is-not-defined


Please let us know if you need any further assistance.


Regards, 

Kavitha M



RA Rafaqat Ali February 15, 2023 08:38 AM UTC

I am using the library in my next js project and throwing error when i want to use spakrline component. Kindly provide me solution.

Capture.PNG



SK Selvaprakash Karuppusamy Syncfusion Team February 20, 2023 10:23 AM UTC

Hi Rafaqat,


For your last query, we have created a new forum under your account. Please follow the below forum for further updates.

https://www.syncfusion.com/forums/180638/sparkline-component-query-branched-from-forum-174163


Loader.
Up arrow icon