saleor / saleor-app-payment-stripe

https://saleor.io/
Other
14 stars 157 forks source link

Error when installing module #146

Closed fedexin40 closed 11 months ago

fedexin40 commented 11 months ago

Hello

I cloned the module and tried to use it, but I am having below error when running pnpm dev, of course the first command I executed was pnpm i

> pnpm generate && next dev

> saleor-app-payment-stripe@0.2.0 generate /home/fedexin/Documentos/saleor/saleor-app-payment-stripe
> pnpm generate:graphql && pnpm generate:schema

> saleor-app-payment-stripe@0.2.0 generate:graphql /home/fedexin/Documentos/saleor/saleor-app-payment-stripe
> graphql-codegen

✔ Parse Configuration
⚠ Generate outputs
  ✔ Generate to generated/graphql.ts
  ❯ Generate to generated/schema.graphql
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ Cannot use GraphQLObjectType "AccountAddressCreate" from another module or realm.
      Ensure that there is only one instance of "graphql" in the node_modules
      directory. If different versions of "graphql" are the dependencies of other
      relied on modules, use "resolutions" to ensure only one version is installed.
      https://yarnpkg.com/en/docs/selective-version-resolutions
      Duplicate "graphql" modules cannot be used at the same time since different
      versions may have different capabilities and behavior. The data from one
      version used in the function from another could produce confusing and
      spurious results.
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.

Below my pnpm version list

@hookform/resolvers 3.3.0              @urql/exchange-auth 1.0.0              jsdom 22.1.0                           stripe 12.16.0                         
@next/env 13.4.19                      @vanilla-extract/css 1.13.0            lodash-es 4.17.21                      stripe-event-types 2.4.0               
@radix-ui/react-alert-dialog 1.0.4     @vanilla-extract/next-plugin 2.3.0     modern-errors 6.0.0                    tsx 3.12.7                             
@saleor/app-sdk 0.43.0                 @vanilla-extract/recipes 0.5.0         modern-errors-http 4.0.0               url-join 5.0.0                         
@saleor/macaw-ui 0.8.0-pre.123         @vitejs/plugin-react 4.0.4             modern-errors-serialize 5.0.0          urql 3.0.4                             
@sentry/nextjs 7.64.0                  ajv 8.12.0                             next 13.4.19                           uuidv7 0.6.2                           
@t3-oss/env-nextjs 0.6.1               ajv-formats 2.1.1                      omit-deep-lodash 1.1.7                 vite 4.4.9                             
@tanstack/react-query 4.33.0           bluebird 3.7.2                         pino 8.15.0                            vitest 0.34.2                          
@tanstack/react-query-devtools 4.33.0  classnames 2.3.2                       pino-pretty 10.2.0                     webpack 5.88.2                         
@trpc/client 10.37.1                   eslint-plugin-node 11.1.0              react 18.2.0                           yup 1.2.0                              
@trpc/next 10.37.1                     graphql 15.7.2                         react-dom 18.2.0                       zod 3.22.2                             
@trpc/react-query 10.37.1              graphql-tag 2.12.6                     react-hook-form 7.45.4                 zustand 4.4.1                          
@trpc/server 10.37.1                   jose 4.14.4                            semver 7.5.4                           

devDependencies:
@changesets/cli 2.26.2                        @testing-library/jest-dom 6.1.1               eslint 8.47.0                                 
@graphql-codegen/add 5.0.0                    @testing-library/react 14.0.0                 eslint-config-next 13.4.19                    
@graphql-codegen/cli 5.0.0                    @testing-library/react-hooks 8.0.1            eslint-config-prettier 9.0.0                  
@graphql-codegen/introspection 4.0.0          @types/bluebird 3.5.38                        eslint-plugin-import 2.28.1                   
@graphql-codegen/typed-document-node 5.0.1    @types/lodash-es 4.17.8                       eslint-plugin-require-form-method 1.0.2       
@graphql-codegen/typescript 4.0.1             @types/node 20.5.4                            eslint-plugin-testing-library 6.0.0           
@graphql-codegen/typescript-operations 4.0.1  @types/omit-deep-lodash 1.1.1                 eslint-plugin-vitest 0.2.8                    
@graphql-codegen/typescript-urql 3.7.3        @types/react 18.2.21                          husky 8.0.3                                   
@graphql-codegen/urql-introspection 2.2.1     @types/react-dom 18.2.7                       json-schema-to-typescript 13.0.2              
@graphql-typed-document-node/core 3.2.0       @types/semver 7.5.0                           lint-staged 14.0.1                            
@pollyjs/adapter-fetch 6.0.6                  @types/setup-polly-jest 0.5.2                 next-test-api-route-handler 3.1.8             
@pollyjs/adapter-node-http 6.0.6              @typescript-eslint/eslint-plugin 6.4.1        prettier 3.0.2                                
@pollyjs/core 6.0.6                           @typescript-eslint/parser 6.4.1               setup-polly-jest 0.11.0                       
@pollyjs/persister-fs 6.0.6                   @vanilla-extract/vite-plugin 3.9.0            ts-node 10.9.1                                
@saleor/eslint-plugin-saleor-app 0.1.2        @vitest/coverage-v8 0.34.2                    typescript 5.1.6                              
@saleor/json-schema-compiler 0.1.2            dependency-cruiser 13.1.4                     vite-tsconfig-paths 4.2.0 

I am using the main branch

fedexin40 commented 11 months ago

@mmiszy may you give some clues, please?

fedexin40 commented 11 months ago

I guess I had some graphql version installed in some other place, I removed all the node_modules in all the system with the command

npkill -f

And that fix the issue