github: add a reproduction environment to the issue template #354
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add a repro env to the issue template to get people to make more repros!
Details
this should help make reproductions easier as it gives a quick starting point requiring no boilerplate and is easily accessible from a browser too
decided to go with StackBlitz over CodeSandbox and repl.it as it's WebContainer tech allows for running Node projects entirely inside the browser (via WebAssembly)
rollup/plugins
use repl.it for reproductions: https://replit.com/@rollup/rollup-plugin-reproStackBlitz: https://stackblitz.com/edit/rpt2-repro
GitHub: https://github.com/agilgur5/rpt2-repro
README
with directions there as well as in theindex.ts
file 🙂References
Have already made several reproductions of issues using this environment as well, so can confirm that it works well!
semantic error TS2339: Property 'write' does not exist on type 'Clipboard'
-- can't repro #306 (comment)tsc
-- can't repro, Vite misconfiguration #305 (comment)semantic error TS2339: Property 'name' does not exist on type 'User'
with rpt2 but nottsc
when using Vite -- can't repro #297 (comment)syntax error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
-- can't repro #247 (comment)@ts-nocheck
not working on.tsx
file -- needs TS 3.7+ #223 (comment)