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

The production build failed with the error "Cannot find module 'graphql-request/dist/types' or its corresponding type declarations." #24

Open
mazgi opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mazgi
Copy link
Owner

mazgi commented Apr 21, 2023

https://github.com/mazgi/template.containerized-nextjs-project/actions/runs/4763704012/jobs/8467447253

#11 80.31 Failed to compile.
#11 80.31 
#11 80.31 ./lib/generated/graphql/sdk.ts:2:29
#11 80.31 Type error: Cannot find module 'graphql-request/dist/types' or its corresponding type declarations.
#11 80.31 
#11 80.31   1 | import { GraphQLClient } from 'graphql-request'
#11 80.31 > 2 | import { ClientError } from 'graphql-request/dist/types'
#11 80.31     |                             ^
#11 80.31   3 | import * as Dom from 'graphql-request/dist/types.dom'
#11 80.31   4 | import gql from 'graphql-tag'
#11 80.31   5 | import useSWR, {
#11 ERROR: executor failed running [/bin/sh -c : Install deps  && npm clean-install --only=production  && npm cache clean --force  && npm run build  && :]: exit code: 1
------
 > [frontend-builder 3/3] RUN : Install deps  && npm clean-install --only=production  && npm cache clean --force  && npm run build  && ::
#11 80.31 
#11 80.31 ./lib/generated/graphql/sdk.ts:2:29
#11 80.31 Type error: Cannot find module 'graphql-request/dist/types' or its corresponding type declarations.
#11 80.31 
#11 80.31   1 | import { GraphQLClient } from 'graphql-request'
#11 80.31 > 2 | import { ClientError } from 'graphql-request/dist/types'
#11 80.31     |                             ^
#11 80.31   3 | import * as Dom from 'graphql-request/dist/types.dom'
#11 80.31   4 | import gql from 'graphql-tag'
#11 80.31   5 | import useSWR, {
------
failed to solve: executor failed running [/bin/sh -c : Install deps  && npm clean-install --only=production  && npm cache clean --force  && npm run build  && :]: exit code: 1
Error: Process completed with exit code 17.
@mazgi mazgi added the bug Something isn't working label Apr 21, 2023
@mazgi mazgi self-assigned this Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant