alchemyplatform / aa-sdk

https://www.alchemy.com/account-abstraction
MIT License
211 stars 114 forks source link

Error: No “exports” main #653

Open joshy36 opened 5 months ago

joshy36 commented 5 months ago

Thanks for filling out this bug report. Please provide as much detail as possible.

If your issue is with our RPC APIs and not the SDK please report your issue on (discord)[https://alchemy.com/discord].

[REQUIRED] Environment

[REQUIRED] Describe the problem

Error: No “exports” main defined in ~/node_modules/typescript-cookie/package.json at new NodeError (node:internal/errors:406:5) at exportsNotFound (node:internal/modules/esm/resolve:268:10) at packageExportsResolve (node:internal/modules/esm/resolve:542:13) at resolveExports (node:internal/modules/cjs/loader:547:36) at Function.Module._findPath (node:internal/modules/cjs/loader:621:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1034:27) at Function.Module._load (node:internal/modules/cjs/loader:901:27) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at Object. (~/node_modules/@alchemy/aa-alchemy/src/config/utils/cookies.ts:1:1)

How to reproduce:

Relevant tsconfig

"compilerOptions": { "module": "commonjs", "resolveJsonModule": true, "esModuleInterop": true, "declaration": true, "removeComments": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", "incremental": true, "skipLibCheck": true, "strictNullChecks": false, "noImplicitAny": false, "strictBindCallApply": false, "forceConsistentCasingInFileNames": false, "noFallthroughCasesInSwitch": false }

Relevant code or sample repro:

moldy530 commented 4 months ago

ah think this was resolved once we removed the typescript-cookie dependency