Я попытался завершить свой код в теги с приостановкой, но я все еще получаю следующую ошибку, создавая производственную сборку моего приложения NextJS. < /p>
Я попытался завершить свой код в теги с приостановкой, но я все еще получаю следующую ошибку, создавая производственную сборку моего приложения NextJS. < /p> [code] ⨯ useSearchParams() should be wrapped in a suspense boundary at page "/find/searchResults". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout at a (/home/yash/nextjs-hireme/hireme/.next/server/chunks/244.js:1:6747) at f (/home/yash/nextjs-hireme/hireme/.next/server/chunks/244.js:1:23270) at h (/home/yash/nextjs-hireme/hireme/.next/server/app/find/searchResults/page.js:1:3734) at nO (/home/yash/nextjs-hireme/hireme/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:45959) at nI (/home/yash/nextjs-hireme/hireme/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:47734) at nL (/home/yash/nextjs-hireme/hireme/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:65533) at nN (/home/yash/nextjs-hireme/hireme/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:63164) at n$ (/home/yash/nextjs-hireme/hireme/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:46311) at nI (/home/yash/nextjs-hireme/hireme/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:47780) at nI (/home/yash/nextjs-hireme/hireme/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:62515) Error occurred prerendering page "/find/searchResults". Read more: https://nextjs.org/docs/messages/prerender-error Export encountered an error on /find/searchResults/page: /find/searchResults, exiting the build. ⨯ Static worker exited with code: 1 and signal: null < /code> Я также попробовал переустановить зависимости, но ничего не работает. На этой странице отображаются результаты поиска, извлеченные компонентом поиска. Вот моя структура папки: < / / p> app/ ├── components/ | ├── search-services.jsx | ├── find/ │ ├── searchResults/ │ | ├── page.jsx │ ├── page.jsx < /code> Вот мой код: < /p> "use client";
import React, { useEffect, useState, Suspense } from "react"; import { useSearchParams } from "next/navigation"; import searchServices from "../../components/search-services"; import Link from "next/link"; import ServiceDetails from "../../components/service-details"; import { auth, db } from "../../firebase/config"; import { doc, getDoc } from "firebase/firestore"; import calculateDistance from "../../components/calculate-distance";
Я хотел бы избежать предупреждения о нераспознанных атрибутах. Это происходит потому, что я набирал базовый класс в аргументе функции, однако сама функция использует атрибуты из полученных классов.
class Base
def __init__(self):
pass
Я хотел бы избежать предупреждения о нераспознанных атрибутах. Это происходит потому, что я набирал базовый класс в аргументе функции, однако сама функция использует атрибуты из полученных классов.
@dataclass
class Base
На щелчке значка Plus я хочу, чтобы значок проверки появился только для того, что плюс значок в этом конкретном Div. Не все плюс значки на протяжении всей страницы. Вот HTML, за которым следует jQuery.
Я пытался получить последнее слово предложения, используя метод .find () в цикле.
my code:
sentence = please write a program which keeps asking the user for words
index = 0
substring = sentence.find( )
while index
Этот код работает, когда...
Я пытался получить последнее слово предложения, используя метод .find () в цикле.
my code:
sentence = please write a program which keeps asking the user for words
index = 0
substring = sentence.find( )
while index
Этот код работает, когда...