Compatibility Issue Due to Documentation/Configuration Mismatch
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, react, typescript
- Domain
- build-system
Research direction
Compare the installation instructions with the package's tsup configuration and the two package imports shown in the report. Reproduce the TypeScript error using the provided configuration, then verify that the documented dependency and configuration reference the same package and that the error is resolved.
Written by the indexing model from the issue text.
Description
Hello,
I am encountering a compatibility issue after following your package's installation instructions. The documentation indicates that a specific package should be installed; however, the tsup configuration appears to be referencing an older, incompatible version. This discrepancy is causing conflicts and preventing the package from functioning correctly.
Reproduction Steps
-
Installed the package as instructed:
yarn add esbuild-plugin-react18 -
Configured
tsupI think it use your old package esbuild-react18-useclient as follows:// tsup.config.ts or tsup.config.js import { defineConfig } from "tsup"; import react18Plugin from "esbuild-react18-useclient"; const react18PluginOptions: React18PluginOptions = {} export default defineConfig(options => ({ ... esbuildPlugins:[react18Plugin(react18PluginOptions)] })); -
Attempted to use the following configuration, but encountered a TypeScript error:
import { defineConfig } from 'tsup' import react18Plugin, { React18PluginOptions } from 'esbuild-plugin-react18' const react18PluginOptions: React18PluginOptions = {} export default defineConfig({ entry: ['src/index.ts'], format: ['cjs', 'esm'], splitting: false, sourcemap: true, dts: true, minify: true, treeshake: true, external: ['react', 'react-dom'], esbuildPlugins: [react18Plugin(react18PluginOptions)], })TypeScript Error:
Type '"external" | "bundle" | undefined' is not assignable to type '"external" | undefined'. Type '"bundle"' is not assignable to type '"external"'.ts(2322)
Request
Could you please take a look at the tsup configuration within the package and ensure it aligns with the documented dependencies? I would greatly appreciate your assistance in resolving this matter.
Thank you for your time and consideration.
- Dominant language
- TypeScript
- Stars
- 15
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from react18-tools/esbuild-plugin-react18
-
bug help wanted
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Known Issues Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
All issues in react18-tools/esbuild-plugin-react18
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·