ton-connect / sdk

SDK for TON Connect 2.0 — a comprehensive communication protocol between wallets and apps in TON ecosystem
Apache License 2.0
165 stars 40 forks source link

UI-REACT: build error #161

Closed NarekChang closed 1 month ago

NarekChang commented 1 month ago

Describe the bug

Build with non-existent files. It seems to be a conflict of npm package versions. You may not have updated some part of the public packages.

Expected behavior

No assembly error

Current behavior

WARNING in ./node_modules/@tonconnect/sdk/lib/esm/index.mjs Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/.../frontend/node_modules/@tonconnect/sdk/src/utils/types.ts' file: Error: ENOENT: no such file or directory, open '/.../frontend/node_modules/@tonconnect/sdk/src/utils/types.ts'

Steps to Reproduce

  1. npm i @tonconnect/ui-react
  2. Wrapped HOC to TonConnectUIProvider
  3. run react-scripts start

(use react-cli)

Environment

ts-config

{
  "compilerOptions": {
    "baseUrl": ".",
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx",
    "paths": {
      "features": ["./src/features"]
    },
    "typeRoots": ["./node_modules/telegram-webapps"]
  },
  "include": ["**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules"]
}

Additional context

No response