Code Monkey home page Code Monkey logo

react18-tools / esbuild-react18-useclient Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 68 KB

esbuild plugin for compiling libraries compatible with React 18 server and client component, Nextjs13, Remix, etc. Please use Turborepo Template -> https://github.com/react18-tools/turborepo-template

Home Page: https://github.com/react18-tools/turborepo-template

License: MIT License

JavaScript 47.61% TypeScript 52.39%
esbuild esbuild-plugin javascript nextjs nodejs react-libraries react-server-components react18 reactjs tsup

esbuild-react18-useclient's Introduction

react18-tools

GitHub Org's stars

esbuild-react18-useclient's People

Contributors

mayank1513 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

esbuild-react18-useclient's Issues

Provide example(s) using this plugin

There should be a proper example demonstrating use of this plugin.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

IDE showing type error

IDE showing following error

Argument of type '(options: Options) => { format: ("cjs" | "esm")[]; target: "es2019"; sourcemap: true; clean: true; minify: boolean; plugins: typeof import("C:/Users/G/web/open-source/nextjs-themes/node_modules/.pnpm/[email protected]/node_modules/esbuild-react18-useclient/index")[]; }' is not assignable to parameter of type 'Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>)'.
  Type '(options: Options) => { format: ("cjs" | "esm")[]; target: "es2019"; sourcemap: true; clean: true; minify: boolean; plugins: typeof import("C:/Users/G/web/open-source/nextjs-themes/node_modules/.pnpm/[email protected]/node_modules/esbuild-react18-useclient/index")[]; }' is not assignable to type '(overrideOptions: Options) => MaybePromise<Options | Options[]>'.
    Type '{ format: ("cjs" | "esm")[]; target: "es2019"; sourcemap: true; clean: true; minify: boolean; plugins: (typeof reactUseClientPlugin)[]; }' is not assignable to type 'MaybePromise<Options | Options[]>'.
      Type '{ format: ("cjs" | "esm")[]; target: "es2019"; sourcemap: true; clean: true; minify: boolean; plugins: (typeof reactUseClientPlugin)[]; }' is not assignable to type 'Options'.
        Types of property 'plugins' are incompatible.
          Type 'typeof import("C:/Users/G/web/open-source/nextjs-themes/node_modules/.pnpm/[email protected]/node_modules/esbuild-react18-useclient/index")[]' is not assignable to type 'Plugin[]'.
            Property 'name' is missing in type 'typeof import("C:/Users/G/web/open-source/nextjs-themes/node_modules/.pnpm/[email protected]/node_modules/esbuild-react18-useclient/index")' but required in type 'Plugin'.ts(2345)
index.d.ts(41, 5): 'name' is declared here.

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.