burner-wallet / sample-plugin

Boilerplate for building a new plugin for the Burner Wallet 2
13 stars 21 forks source link

Issue with @types/styled-components and typescript versions #3

Open bfayette opened 4 years ago

bfayette commented 4 years ago

Environment wls2 ubuntu-20.04 yarn versions v1.22.4 { yarn: '1.22.4', node: '12.18.2', v8: '7.8.279.23-node.39', uv: '1.38.0', zlib: '1.2.11', brotli: '1.0.7', ares: '1.16.0', modules: '72', nghttp2: '1.41.0', napi: '6', llhttp: '2.0.4', http_parser: '2.9.3', openssl: '1.1.1g', cldr: '37.0', icu: '67.1', tz: '2019c', unicode: '13.0' }

git branch

yarn start-local local-wallet: Error: Invalid JSON RPC response: "" local-wallet: at Object.InvalidResponse

yarn build ../node_modules/@types/styled-components/index.d.ts(181,8): error TS2615: Type of property 'propTypes' circularly refere

bfayette commented 4 years ago

### Work around to get started with typescript start by creating a brand new project npx create-react-app my-app --template typescript or yarn create react-app my-app --template typescript

Then yarn add @burner-wallet/core @burner-wallet/assets @burner-wallet/modern-ui @burner-wallet/types

And Copy an index.tsx from the project

And Remove my-plugin references or set it up

Finally yarn start