Compile the dockerfile locally, but it cannot pass. pushDataToDatasetCollection cannot be imported
例行检查
- [ ] 我已确认目前没有类似 issue
- [ ] 我已完整查看过项目 README,以及项目文档
- [ ] 我使用了自己的 key,并确认我的 key 是可正常使用的
- [ ] 我理解并愿意跟进此 issue,协助测试和提供反馈
- [x] 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭
你的版本
- [ ] 公有云版本
- [x] 私有部署版本
问题描述 本地通过编译dockerfile ,无法通过。 [+] Building 0.0s (0/0) docker:desktop-linux [+] Building 0.0s (0/0) docker:desktop-linux [+] Building 54.5s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 54.6s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 54.8s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 54.9s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 55.1s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 55.2s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 55.4s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 57.1s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 57.2s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s [+] Building 57.4s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s [+] Building 57.5s (23/38) docker:desktop-linux => [fastgpt maindeps 7/10] COPY ./packages ./packages 0.1s => [fastgpt maindeps 8/10] COPY ./projects/app/package.json ./projects/app/package.js 0.0s => [fastgpt maindeps 9/10] RUN [ -f pnpm-lock.yaml ] || (echo "Lockfile not found." & 0.1s [+] Building 193.8s (23/38) docker:desktop-linux [+] Building 193.9s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s [+] Building 194.0s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s [+] Building 194.2s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.3s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.5s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.6s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.8s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.9s (23/38) docker:desktop-linux => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s => [fastgpt maindeps 7/10] COPY ./packages ./packages 0.1s => [fastgpt maindeps 8/10] COPY ./projects/app/package.json ./projects/app/package.js 0.0s [+] Building 236.6s (31/38) docker:desktop-linux => [fastgpt internal] load .dockerignore 10.0s => => transferring context: 149B 10.0s => [fastgpt internal] load build definition from Dockerfile 10.0s => => transferring dockerfile: 2.96kB 10.0s => [fastgpt internal] load metadata for docker.io/library/node:18.17-alpine 14.2s => [fastgpt internal] load build context 10.1s => => transferring context: 446.29kB 10.1s => [fastgpt workerdeps 1/7] FROM docker.io/library/node:18.17-alpine@sha256:3482a20c97 0.0s => CACHED [fastgpt workerdeps 2/7] WORKDIR /app 0.0s => CACHED [fastgpt workerdeps 3/7] RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux 0.0s => CACHED [fastgpt workerdeps 4/7] RUN apk add --no-cache libc6-compat && npm install 0.0s => CACHED [fastgpt workerdeps 5/7] RUN [ -z "$proxy" ] || pnpm config set registry htt 0.0s => [fastgpt runner 3/13] RUN addgroup --system --gid 1001 nodejs 0.2s => [fastgpt maindeps 3/10] RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux.org/mi 0.1s => [fastgpt maindeps 4/10] RUN apk add --no-cache libc6-compat && npm install -g pnpm 8.0s => [fastgpt runner 4/13] RUN adduser --system --uid 1001 nextjs 0.3s => [fastgpt runner 5/13] RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux.org/mirr 0.1s => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s => [fastgpt maindeps 7/10] COPY ./packages ./packages 0.1s => [fastgpt maindeps 8/10] COPY ./projects/app/package.json ./projects/app/package.js 0.0s => [fastgpt maindeps 9/10] RUN [ -f pnpm-lock.yaml ] || (echo "Lockfile not found." & 0.1s => [fastgpt workerdeps 7/7] RUN cd /app/worker && pnpm i --production --ignore-workspa 2.5s => [fastgpt maindeps 10/10] RUN pnpm i 155.9s => [fastgpt builder 4/10] COPY --from=mainDeps /app/node_modules ./node_modules 3.5s => [fastgpt builder 5/10] COPY --from=mainDeps /app/packages ./packages 0.0s => [fastgpt builder 6/10] COPY ./projects/app ./projects/app 0.4s => [fastgpt builder 7/10] COPY --from=mainDeps /app/projects/app/node_modules ./proje 0.0s => [fastgpt builder 8/10] RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux.org/mir 0.1s => [fastgpt builder 9/10] RUN apk add --no-cache libc6-compat && npm install -g pnpm@ 7.2s => ERROR [fastgpt builder 10/10] RUN pnpm --filter=app build 12.8s
[fastgpt builder 10/10] RUN pnpm --filter=app build: 0.407 0.407 > [email protected] build /app/projects/app 0.407 > next build 0.407 0.646 Attention: Next.js now collects completely anonymous telemetry regarding usage. 0.647 This information is used to shape Next.js' roadmap and prioritize features. 0.647 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: 0.647 https://nextjs.org/telemetry 0.647 0.687 Linting and checking validity of types... 4.236 4.236 ./src/components/ChatBox/index.tsx 4.236 213:28 Warning: React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/DatasetParamsModal.tsx 4.236 75:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/Flow/FlowProvider.tsx 4.236 430:6 Warning: React Hook useEffect has missing dependencies: 'onChangeNode', 'onCopyNode', 'onDelConnect', 'onDelNode', 'onResetNode', and 'setNodes'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/Flow/components/render/FieldEditModal.tsx 4.236 108:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 116:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 122:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 130:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 136:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/Flow/components/render/RenderInput/templates/SelectDataset.tsx 4.236 79:6 Warning: React Hook useEffect has a missing dependency: 'data'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/Flow/components/render/RenderInput/templates/SelectDatasetParams.tsx 4.236 53:6 Warning: React Hook useEffect has a missing dependency: 'data'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/_app.tsx 4.236 86:6 Warning: React Hook useEffect has a missing dependency: 'loadGitStar'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 95:6 Warning: React Hook useEffect has missing dependencies: 'i18n.language' and 'router'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/_error.tsx 4.236 24:6 Warning: React Hook useEffect has missing dependencies: 'lastRoute' and 'router'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/app/detail/components/Charts/TotalUsage.tsx 4.236 180:6 Warning: React Hook useEffect has a missing dependency: 'option'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/app/detail/components/FlowEdit/index.tsx 4.236 45:6 Warning: React Hook useEffect has a missing dependency: 'initData'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 49:6 Warning: React Hook useMemo has a missing dependency: 'moduleTemplates'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/app/detail/components/SimpleEdit/EditForm.tsx 4.236 127:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/app/detail/index.tsx 4.236 98:6 Warning: React Hook useEffect has missing dependencies: 'clearAppModules' and 't'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/chat/components/ChatHeader.tsx 4.236 39:5 Warning: React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/chat/components/ToolMenu.tsx 4.236 44:5 Warning: React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/chat/index.tsx 4.236 129:5 Warning: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 186:5 Warning: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/chat/share.tsx 4.236 153:5 Warning: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/CollectionCard.tsx 4.236 143:27 Warning: React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. react-hooks/exhaustive-deps 4.236 301:6 Warning: React Hook useEffect has a missing dependency: 'getData'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/DataCard.tsx 4.236 98:24 Warning: React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/Provider.tsx 4.236 131:72 Warning: React Hook useMemo has a missing dependency: 'modeStaticParams'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/commonProgress/DataProcess.tsx 4.236 66:6 Warning: React Hook useEffect has missing dependencies: 'showPreviewChunks' and 'splitSources2Chunks'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/commonProgress/Upload.tsx 4.236 190:6 Warning: React Hook useEffect has a missing dependency: 'sources'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/diffSource/FileCustomText.tsx 4.236 47:6 Warning: React Hook useEffect has missing dependencies: 'reset' and 'sources'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/diffSource/FileLink.tsx 4.236 52:6 Warning: React Hook useEffect has missing dependencies: 'reset' and 'sources'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/diffSource/FileLocal.tsx 4.236 56:6 Warning: React Hook useEffect has a missing dependency: 'setSources'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/diffSource/TableLocal.tsx 4.236 52:6 Warning: React Hook useEffect has a missing dependency: 'setSources'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/login/fastlogin.tsx 4.236 79:6 Warning: React Hook useEffect has missing dependencies: 'authCode', 'callbackUrl', 'code', 'router', and 'token'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/login/index.tsx 4.236 58:6 Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/login/provider.tsx 4.236 101:6 Warning: React Hook useEffect has missing dependencies: 'authCode', 'code', 'error', 'loginStore?.state', 'router', 'state', 't', and 'toast'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/plugin/edit/index.tsx 4.236 76:6 Warning: React Hook useEffect has a missing dependency: 'initData'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/web/common/hooks/useEditTitle.tsx 4.236 73:6 Warning: React Hook useCallback has missing dependencies: 'toast' and 'valueRule'. Either include them or remove the dependency array. If 'valueRule' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps 4.236 112:5 Warning: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/web/common/hooks/usePagination.tsx 4.236 175:6 Warning: React Hook useEffect has missing dependencies: 'defaultRequest' and 'mutate'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/web/common/hooks/useSpeech.ts 4.236 129:6 Warning: React Hook useEffect has a missing dependency: 'mediaStream'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/web/common/hooks/useSticky.ts 4.236 19:17 Warning: The ref value 'parentRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'parentRef.current' to a variable inside the effect, and use that variable in the cleanup function. react-hooks/exhaustive-deps 4.236 4.236 info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules 12.70 Failed to compile. 12.70 12.70 ./src/pages/api/core/dataset/collection/apiCreate/text.ts:14:10 12.70 Type error: Module '"@/service/core/dataset/data/controller"' has no exported member 'pushDataToDatasetCollection'. 12.70 12.70 12 | import { checkDatasetLimit } from '@fastgpt/service/support/permission/limit/dataset'; 12.70 13 | import { predictDataLimitLength } from '@fastgpt/global/core/dataset/utils'; 12.70 > 14 | import { pushDataToDatasetCollection } from '@/service/core/dataset/data/controller'; 12.70 | ^ 12.70 15 | import { hashStr } from '@fastgpt/global/common/string/tools'; 12.70 16 | 12.70 17 | export default async function handler(req: NextApiRequest, res: NextApiResponse
) { 12.74 undefined 12.74 /app/projects/app: 12.74 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL [email protected] build: next build12.74 Exit status 1
failed to solve: process "/bin/sh -c pnpm --filter=$name build" did not complete successfully: exit code: 1
复现步骤
预期结果
相关截图
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Routine inspection
- [ ] I have confirmed that there is currently no similar issue
- [ ] I have fully reviewed the project README, as well as Project Documentation
- [ ] I used my own key and confirmed that my key can be used normally.
- [ ] I understand and am willing to follow up on this issue, assist with testing and provide feedback
- [x] I understand and acknowledge the above content, and understand that project maintainers have limited energy. Issues that do not follow the rules may be ignored or closed directly
your version
- [ ] Public cloud version
- [ ] private deployment version
Problem Description Compiling the dockerfile locally fails. [+] Building 0.0s (0/0) docker:desktop-linux [+] Building 0.0s (0/0) docker:desktop-linux [+] Building 54.5s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 54.6s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 54.8s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 54.9s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 55.1s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 55.2s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 55.4s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npm.taobao.org 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s [+] Building 57.1s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 57.2s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s [+] Building 57.4s (23/38) docker:desktop-linux => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s [+] Building 57.5s (23/38) docker:desktop-linux => [fastgpt maindeps 7/10] COPY ./packages ./packages 0.1s => [fastgpt maindeps 8/10] COPY ./projects/app/package.json ./projects/app/package.js 0.0s => [fastgpt maindeps 9/10] RUN [ -f pnpm-lock.yaml ] || (echo "Lockfile not found." & 0.1s [+] Building 193.8s (23/38) docker:desktop-linux [+] Building 193.9s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s [+] Building 194.0s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s [+] Building 194.2s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.3s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.5s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.6s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.8s (23/38) docker:desktop-linux => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s [+] Building 194.9s (23/38) docker:desktop-linux => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s => [fastgpt maindeps 7/10] COPY ./packages ./packages 0.1s => [fastgpt maindeps 8/10] COPY ./projects/app/package.json ./projects/app/package.js 0.0s [+] Building 236.6s (31/38) docker:desktop-linux => [fastgpt internal] load .dockerignore 10.0s => => transferring context: 149B 10.0s => [fastgpt internal] load build definition from Dockerfile 10.0s => => transferring dockerfile: 2.96kB 10.0s => [fastgpt internal] load metadata for docker.io/library/node:18.17-alpine 14.2s => [fastgpt internal] load build context 10.1s => => transferring context: 446.29kB 10.1s => [fastgpt workerdeps 1/7] FROM docker.io/library/node:18.17-alpine@sha256:3482a20c97 0.0s => CACHED [fastgpt workerdeps 2/7] WORKDIR /app 0.0s => CACHED [fastgpt workerdeps 3/7] RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux 0.0s => CACHED [fastgpt workerdeps 4/7] RUN apk add --no-cache libc6-compat && npm install 0.0s => CACHED [fastgpt workerdeps 5/7] RUN [ -z "$proxy" ] || pnpm config set registry htt 0.0s => [fastgpt runner 3/13] RUN addgroup --system --gid 1001 nodejs 0.2s => [fastgpt maindeps 3/10] RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux.org/mi 0.1s => [fastgpt maindeps 4/10] RUN apk add --no-cache libc6-compat && npm install -g pnpm 8.0s => [fastgpt runner 4/13] RUN adduser --system --uid 1001 nextjs 0.3s => [fastgpt runner 5/13] RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux.org/mirr 0.1s => [fastgpt runner 6/13] RUN apk add --no-cache curl ca-certificates && update-ca-c 5.7s => [fastgpt maindeps 5/10] RUN [ -z "$proxy" ] || pnpm config set registry https://re 0.1s => [fastgpt maindeps 6/10] COPY pnpm-lock.yaml pnpm-workspace.yaml ./ 0.0s => [fastgpt workerdeps 6/7] COPY ./worker /app/worker 0.2s => [fastgpt builder 3/10] COPY package.json pnpm-workspace.yaml ./ 0.0s => [fastgpt maindeps 7/10] COPY ./packages ./packages 0.1s => [fastgpt maindeps 8/10] COPY ./projects/app/package.json ./projects/app/package.js 0.0s => [fastgpt maindeps 9/10] RUN [ -f pnpm-lock.yaml ] || (echo "Lockfile not found." & 0.1s => [fastgpt workerdeps 7/7] RUN cd /app/worker && pnpm i --production --ignore-workspa 2.5s => [fastgpt maindeps 10/10] RUN pnpm i 155.9s => [fastgpt builder 4/10] COPY --from=mainDeps /app/node_modules ./node_modules 3.5s => [fastgpt builder 5/10] COPY --from=mainDeps /app/packages ./packages 0.0s => [fastgpt builder 6/10] COPY ./projects/app ./projects/app 0.4s => [fastgpt builder 7/10] COPY --from=mainDeps /app/projects/app/node_modules ./proje 0.0s => [fastgpt builder 8/10] RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux.org/mir 0.1s => [fastgpt builder 9/10] RUN apk add --no-cache libc6-compat && npm install -g pnpm@ 7.2s => ERROR [fastgpt builder 10/10] RUN pnpm --filter=app build 12.8s
[fastgpt builder 10/10] RUN pnpm --filter=app build: 0.407 0.407 > [email protected] build /app/projects/app 0.407 > next build 0.407 0.646 Attention: Next.js now collects completely anonymous telemetry regarding usage. 0.647 This information is used to shape Next.js' roadmap and prioritize features. 0.647 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: 0.647 https://nextjs.org/telemetry 0.647 0.687 Linting and checking validity of types... 4.236 4.236 ./src/components/ChatBox/index.tsx 4.236 213:28 Warning: React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/DatasetParamsModal.tsx 4.236 75:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/Flow/FlowProvider.tsx 4.236 430:6 Warning: React Hook useEffect has missing dependencies: 'onChangeNode', 'onCopyNode', 'onDelConnect', 'onDelNode', 'onResetNode', and 'setNodes'. Either include them or remove the dependency array. react-hooks /exhaustive-deps 4.236 4.236 ./src/components/core/module/Flow/components/render/FieldEditModal.tsx 4.236 108:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 116:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 122:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 130:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 136:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/Flow/components/render/RenderInput/templates/SelectDataset.tsx 4.236 79:6 Warning: React Hook useEffect has a missing dependency: 'data'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/components/core/module/Flow/components/render/RenderInput/templates/SelectDatasetParams.tsx 4.236 53:6 Warning: React Hook useEffect has a missing dependency: 'data'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/_app.tsx 4.236 86:6 Warning: React Hook useEffect has a missing dependency: 'loadGitStar'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 95:6 Warning: React Hook useEffect has missing dependencies: 'i18n.language' and 'router'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/_error.tsx 4.236 24:6 Warning: React Hook useEffect has missing dependencies: 'lastRoute' and 'router'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/app/detail/components/Charts/TotalUsage.tsx 4.236 180:6 Warning: React Hook useEffect has a missing dependency: 'option'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/app/detail/components/FlowEdit/index.tsx 4.236 45:6 Warning: React Hook useEffect has a missing dependency: 'initData'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 49:6 Warning: React Hook useMemo has a missing dependency: 'moduleTemplates'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/app/detail/components/SimpleEdit/EditForm.tsx 4.236 127:6 Warning: React Hook useMemo has an unnecessary dependency: 'refresh'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/app/detail/index.tsx 4.236 98:6 Warning: React Hook useEffect has missing dependencies: 'clearAppModules' and 't'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/chat/components/ChatHeader.tsx 4.236 39:5 Warning: React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/chat/components/ToolMenu.tsx 4.236 44:5 Warning: React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/chat/index.tsx 4.236 129:5 Warning: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 186:5 Warning: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/chat/share.tsx 4.236 153:5 Warning: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/CollectionCard.tsx 4.236 143:27 Warning: React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. react-hooks/exhaustive-deps 4.236 301:6 Warning: React Hook useEffect has a missing dependency: 'getData'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/DataCard.tsx 4.236 98:24 Warning: React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/Provider.tsx 4.236 131:72 Warning: React Hook useMemo has a missing dependency: 'modeStaticParams'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/commonProgress/DataProcess.tsx 4.236 66:6 Warning: React Hook useEffect has missing dependencies: 'showPreviewChunks' and 'splitSources2Chunks'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/commonProgress/Upload.tsx 4.236 190:6 Warning: React Hook useEffect has a missing dependency: 'sources'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/diffSource/FileCustomText.tsx 4.236 47:6 Warning: React Hook useEffect has missing dependencies: 'reset' and 'sources'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/diffSource/FileLink.tsx 4.236 52:6 Warning: React Hook useEffect has missing dependencies: 'reset' and 'sources'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/diffSource/FileLocal.tsx 4.236 56:6 Warning: React Hook useEffect has a missing dependency: 'setSources'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/dataset/detail/components/Import/diffSource/TableLocal.tsx 4.236 52:6 Warning: React Hook useEffect has a missing dependency: 'setSources'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/login/fastlogin.tsx 4.236 79:6 Warning: React Hook useEffect has missing dependencies: 'authCode', 'callbackUrl', 'code', 'router', and 'token'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/login/index.tsx 4.236 58:6 Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/login/provider.tsx 4.236 101:6 Warning: React Hook useEffect has missing dependencies: 'authCode', 'code', 'error', 'loginStore?.state', 'router', 'state', 't', and 'toast'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/pages/plugin/edit/index.tsx 4.236 76:6 Warning: React Hook useEffect has a missing dependency: 'initData'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/web/common/hooks/useEditTitle.tsx 4.236 73:6 Warning: React Hook useCallback has missing dependencies: 'toast' and 'valueRule'. Either include them or remove the dependency array. If 'valueRule' changes too often, find the parent component that defines it and wrap that definition in useCallback.react-hooks/exhaustive-deps 4.236 112:5 Warning: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/web/common/hooks/usePagination.tsx 4.236 175:6 Warning: React Hook useEffect has missing dependencies: 'defaultRequest' and 'mutate'. Either include them or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/web/common/hooks/useSpeech.ts 4.236 129:6 Warning: React Hook useEffect has a missing dependency: 'mediaStream'. Either include it or remove the dependency array. react-hooks/exhaustive-deps 4.236 4.236 ./src/web/common/hooks/useSticky.ts 4.236 19:17 Warning: The ref value 'parentRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'parentRef.current' to a variable inside the effect , and use that variable in the cleanup function. react-hooks/exhaustive-deps 4.236 4.236 info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules 12.70 Failed to compile. 12.70 12.70 ./src/pages/api/core/dataset/collection/apiCreate/text.ts:14:10 12.70 Type error: Module '"@/service/core/dataset/data/controller"' has no exported member 'pushDataToDatasetCollection'. 12.70 12.70 12 | import { checkDatasetLimit } from '@fastgpt/service/support/permission/limit/dataset'; 12.70 13 | import { predictDataLimitLength } from '@fastgpt/global/core/dataset/utils'; 12.70 > 14 | import { pushDataToDatasetCollection } from '@/service/core/dataset/data/controller'; 12.70 | ^ 12.70 15 | import { hashStr } from '@fastgpt/global/common/string/tools'; 12.70 16 | 12.70 17 | export default async function handler(req: NextApiRequest, res: NextApiResponse
) { 12.74 undefined 12.74 /app/projects/app: 12.74 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL [email protected] build: next build12.74 Exit status 1
failed to solve: process "/bin/sh -c pnpm --filter=$name build" did not complete successfully: exit code: 1
Steps to reproduce
expected outcome
Related screenshots
不确定是什么原因,可以看看这个方法是否存在。
我也是这个问题