question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to save the bookmark

See original GitHub issue

Describe the bug

I am trying to save the bookmark on the UI but it’s throwing the error. Note - I am running my server on raspberry pi 4b

error - ReferenceError: performance is not defined
    at Object.start (webpack-internal:///(api)/./src/lib/helpers.js:27:24)
    at handler (webpack-internal:///(api)/./src/pages/api/bookmarks/index.js:119:72)
    at async Object.apiResolver (/srv/dev-disk-by-label-media/Files/AppData/Config/briefkasten/briefkasten/node_modules/.pnpm/next@12.2.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/api-utils/node.js:179:9)
    at async DevServer.runApi (/srv/dev-disk-by-label-media/Files/AppData/Config/briefkasten/briefkasten/node_modules/.pnpm/next@12.2.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/next-server.js:381:9)
    at async Object.fn (/srv/dev-disk-by-label-media/Files/AppData/Config/briefkasten/briefkasten/node_modules/.pnpm/next@12.2.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:497:37)
    at async Router.execute (/srv/dev-disk-by-label-media/Files/AppData/Config/briefkasten/briefkasten/node_modules/.pnpm/next@12.2.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/router.js:213:36)
    at async DevServer.run (/srv/dev-disk-by-label-media/Files/AppData/Config/briefkasten/briefkasten/node_modules/.pnpm/next@12.2.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:616:29)
    at async DevServer.run (/srv/dev-disk-by-label-media/Files/AppData/Config/briefkasten/briefkasten/node_modules/.pnpm/next@12.2.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/dev/next-dev-server.js:532:20)
    at async DevServer.handleRequest (/srv/dev-disk-by-label-media/Files/AppData/Config/briefkasten/briefkasten/node_modules/.pnpm/next@12.2.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:317:20) {
  page: '/api/bookmarks'
}
  30 |     serverTiming.timings = {
  31 |       total: {
> 32 |         start: performance.now(),
     |               ^
  33 |       },
  34 |     }
  35 |   },

Reproduction

Run the server and save the bookmark

System Info

System:
    OS: Linux 5.15 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (4) arm64 unknown
    Memory: 712.83 MB / 3.72 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 14.19.3 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 6.14.17 - /usr/bin/npm
  Browsers:
    Firefox: 91.9.1esr

Used Package Manager

pnpm

Validations

  • Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
shubhank-saxenacommented, Aug 25, 2022

Thank you so much for debugging it. I can finally now close all my tabs XD

1reaction
shubhank-saxenacommented, Aug 25, 2022

@ndom91 works like a charm 🚀 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

9 Easy Ways to Fix Chrome Bookmarks Issues on Your PC
5. Disable extensions if Chrome is not saving bookmarks after a restart · Click the Extensions icon in the Toolbar, and select Manage...
Read more >
I am having issues with bookmarks-not saving or deleting as ...
The workaround I found until they fix this: Go into bookmark manager and right click to add new bookmark. This will save your...
Read more >
Can't add, change or save bookmarks - How to fix | Firefox Help
Allow Firefox to save bookmark changes: Open your profile folder: Click the menu button.
Read more >
Chrome Bookmarks Not Working - [SOLVED] - Silicophilic
Why Chrome Bookmarks Is Not Working? · Solution 1: Restoring The Lost Bookmarks Using Backup · Solution 2: Restore Bookmarks Lost During Updates....
Read more >
Unable to save bookmarks in Chrome - Reddit
Hi everyone, I am unable to permanently save bookmarks in Chrome. ... An user who is not signed in should have their settings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found