Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4212

useSearchParams() should be wrapped in a suspense boundary

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • farmgen-2024.next
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Context

      https://github.com/mongodb-labs/full-stack-fastapi-mongodb/issues/23

      I'm receiving the following error during the static page generation for /, reset-password, and login when running 'docker compose build':

       

       

      28.83    Generating static pages (0/16) ...
      29.55
      29.55  ⨯ useSearchParams() should be wrapped in a suspense boundary at page "/reset-password". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout
      29.55
      29.55 Error occurred prerendering page "/reset-password". Read more: https://nextjs.org/docs/messages/prerender-error
      29.55
      29.56  ⨯ useSearchParams() should be wrapped in a suspense boundary at page "/". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout
      29.56
      29.56 Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
      29.56
      29.56
         Generating static pages (4/16)
         Generating static pages (8/16)
      29.70
      29.70  ⨯ useSearchParams() should be wrapped in a suspense boundary at page "/login". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout
      29.70
      29.70 Error occurred prerendering page "/login". Read more: https://nextjs.org/docs/messages/prerender-error
      29.70
         Generating static pages (12/16)
       ✓ Generating static pages (16/16)
      30.28
      30.28 > Export encountered errors on following paths:
      30.28     /login/page: /login
      30.28     /page: /
      30.28     /reset-password/page: /reset-password
      ------
      failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1 

       

      Definition of done

      Error should go away

      Pitfalls

      What should the implementer watch out for? What are the risks?

            Assignee:
            jib.adegunloye@mongodb.com Jib Adegunloye
            Reporter:
            jib.adegunloye@mongodb.com Jib Adegunloye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: