Coder Social home page Coder Social logo

react-18-vite-typescript's Introduction

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
   parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
   },
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

react-18-vite-typescript's People

Contributors

matthew1809 avatar

Stargazers

 avatar

Watchers

Paolo Lim avatar Itai Turbahn avatar  avatar

react-18-vite-typescript's Issues

Build Fails

Don't know where else to put this since you don't have an SDK repo (that I can find).

This project, and really anything that uses your sdk and Vite, won't build:

react-18-vite-typescript main !2 1 yarn build
yarn run v1.22.21
warning package.json: "dependencies" has dependency "@dynamic-labs/ethereum-aa" with range "^1.0.4" that collides with a dependency in "devDependencies" of the same name with version "^1.0.0"
warning ../package.json: No license field
$ tsc && vite build
node_modules/abi-wan-kanabi-v1/index.ts:15:3 - error TS6133: 'abi' is declared but its value is never read.

15   abi: TAbi,
     ~~~

node_modules/abi-wan-kanabi-v1/index.ts:16:3 - error TS6133: 'f' is declared but its value is never read.

16   f: TFunctionName,
     ~

node_modules/abi-wan-kanabi-v1/index.ts:17:3 - error TS6133: 'args' is declared but its value is never read.

17   args: FunctionArgs<TAbi, TFunctionName>,
     ~~~~

node_modules/abi-wan-kanabi-v1/kanabi.ts:178:25 - error TS6133: 'TAbi' is declared but its value is never read.

178 type PrimitiveTypeLookup<TAbi extends Abi> = {
                            ~~~~~~~~~~~~~~~~~~

node_modules/abi-wan-kanabi-v2/index.ts:18:3 - error TS6133: 'abi' is declared but its value is never read.

18   abi: TAbi,
     ~~~

node_modules/abi-wan-kanabi-v2/index.ts:19:3 - error TS6133: 'f' is declared but its value is never read.

19   f: TFunctionName,
     ~

node_modules/abi-wan-kanabi-v2/index.ts:20:3 - error TS6133: 'args' is declared but its value is never read.

20   args: FunctionArgs<TAbi, TFunctionName>,
     ~~~~

node_modules/abi-wan-kanabi-v2/kanabi.ts:259:25 - error TS6133: 'TAbi' is declared but its value is never read.

259 type PrimitiveTypeLookup<TAbi extends Abi> = {
                            ~~~~~~~~~~~~~~~~~~

node_modules/abi-wan-kanabi-v2/kanabi.ts:403:6 - error TS6196: 'UnionToIntersection' is declared but never used.

403 type UnionToIntersection<Union> = (
         ~~~~~~~~~~~~~~~~~~~


Found 9 errors in 4 files.

Errors  Files
     3  node_modules/abi-wan-kanabi-v1/index.ts:15
     1  node_modules/abi-wan-kanabi-v1/kanabi.ts:178
     3  node_modules/abi-wan-kanabi-v2/index.ts:18
     2  node_modules/abi-wan-kanabi-v2/kanabi.ts:259
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
โžœ  react-18-vite-typescript main !2 1

SolanaWalletConnectors doesnt work

Everything seems to be fine until i pass in SolanaWalletConnectors and then the "Connect wallet" button dissapears. Works for ethereum connectors but not solana. I've reverted to version: "@dynamic-labs/sdk-react-core": "^1.1.3", which is the last version I used before i noticed the bug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.