NextJS build failed because of ReferenceError: CustomEvent is not defined
#1134
Labels
bug
Something isn't working
ReferenceError: CustomEvent is not defined
#1134
Checklist
Describe the bug
This is the complete error trace - https://gist.github.com/shricodev/6c9078d781ba5c4d62d420d16765c025
Steps already taken
After going through the issues section in this repo, I found a closed issue that addressed this error. I tried dynamic importing the modules as shown here. This did not fix it either, or perhaps I missed something.
My repo state in which the error is observed - https://github.com/shricodev/pdfwhisper-openai/tree/50705dd06f9c78327f1a5241c91845d0daad4c5f
However, I found a fix to use
in
layout.tsx
to fix the error that was not letting me build the application. But, on runningThe error is again seen in the console:
Reproducing the bug
pnpm run build
pnpm run start
Logs
No response
Configuration
No response
Hanko Version
0.8.4
OS Hanko Backend
Windows
OS Version Hanko Backend
No response
OS
None
OS Version
No response
Browser Version
No response
Environment
None
Additional Context
No response
The text was updated successfully, but these errors were encountered: