Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'navigator' global does not have property 'platform' #4588

Closed
niemal opened this issue Sep 8, 2023 · 1 comment · Fixed by #4804
Closed

'navigator' global does not have property 'platform' #4588

niemal opened this issue Sep 8, 2023 · 1 comment · Fixed by #4804
Labels
bug Something isn't working web-api Something that relates to a standard Web API

Comments

@niemal
Copy link

niemal commented Sep 8, 2023

What version of Bun is running?

v1.0

What platform is your computer?

Linux 5.15.0-82-generic x86_64 x86_64

What steps can reproduce the bug?

bun --bun next dev in my nextjs project.

What is the expected behavior?

Normal runtime execution output with no errors.

What do you see instead?

Watchpack Error (watcher): Error: FileNotFound
- event compiled successfully in 146 ms (1087 modules)
- wait compiling...
- event compiled successfully in 173 ms (272 modules)
- error 181 |     let ErrorType = Error;
182 |     if (serializedErr.name === "PageNotFoundError") {
183 |         ErrorType = _utils.PageNotFoundError;
184 |     }
185 |     const err = new ErrorType(serializedErr.message);
186 |     err.stack = serializedErr.stack;
                                 ^
TypeError: undefined is not an object (evaluating 'navigator.platform.includes')
      at /unitedgpt/node_modules/next/dist/server/render.js:186:30

Additional information

Nextjs version if needs be: "next": "13.4.11",

@niemal niemal added the bug Something isn't working label Sep 8, 2023
@Electroid Electroid added the web-api Something that relates to a standard Web API label Sep 8, 2023
@bconnorwhite
Copy link

bconnorwhite commented Sep 8, 2023

Getting the same w/pdfjs-dist

Jarred-Sumner added a commit that referenced this issue Sep 10, 2023
Jarred-Sumner added a commit that referenced this issue Sep 11, 2023
* Fixes #4588

* typo

* fixup

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
paperdave pushed a commit to SuperAuguste/bun that referenced this issue Sep 18, 2023
* Fixes oven-sh#4588

* typo

* fixup

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web-api Something that relates to a standard Web API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants