Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

Rebase PR on Dependabot Storybook Branch

Plan:

  • Explore git state and fetch dependabot branch
  • Rebase current branch onto dependabot/npm_and_yarn/extensions/ql-vscode/storybook-ddf19df42f
    • Fetched the dependabot branch
    • Skipped the "Initial plan" commit (repo initialization)
    • Resolved merge conflicts in package.json (accepted dependabot versions)
    • Completed rebase successfully
  • Verify the rebase was successful
    • Checked git log - now based on storybook updates commit
    • Need to reinstall dependencies
    • Run type checks and build
  • Force push the rebased branch

Current Status:

Successfully rebased onto commit 51fe5c3 "Bump the storybook group in /extensions/ql-vscode with 7 updates"

The branch now includes the Storybook v9 upgrade and related dependency updates from the dependabot PR.

Original prompt

Problem: TypeScript build and lint jobs are failing due to inability to resolve the module '@storybook/react' in multiple .stories.tsx files, and due to strict typing issues (TS7006: Parameter 'args' implicitly has an 'any' type). There is also a warning about outdated Browserslist data.

Details (from logs):

  • TS2307: Cannot find module '@storybook/react' or its corresponding type declarations.
  • Types exist at 'node_modules/@storybook/react/dist/index.d.ts', but cannot be resolved under current 'moduleResolution'. Suggests switching to 'node16', 'nodenext', or 'bundler'.
  • TS7006: Parameter 'args' implicitly has an 'any' type in many .stories.tsx files.
  • Browserslist DB is outdated (warning only).

Solution implemented:

  1. Update the relevant tsconfig.json (likely at extensions/ql-vscode/tsconfig.json) to set "moduleResolution": "node16".
  2. Ensure @storybook/react and its type declarations are installed in the extensions/ql-vscode/ package (install @storybook/react, @types/react, @types/storybook__react as devDependencies if missing).
  3. Add explicit type annotations for 'args' parameters in Storybook *.stories.tsx files (use the correct prop types where possible; fallback to 'any' to unblock the build).
  4. Run 'npx update-browserslist-db@latest' and commit the changes if package-lock.json or similar files are updated.

Commit message guidelines:

  • For each commit, clearly describe the build failure and resolution e.g., "fix(tsconfig): set moduleResolution to node16 to resolve storybook module resolution errors".
  • Mention TypeScript or Storybook error codes where relevant for reviewer traceability.
  • If installing dependencies, note the reason and linkage to the failing jobs (TypeScript/Storybook compatibility).

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Updated caniuse-lite from 1.0.30001731 to 1.0.30001767
- This resolves the outdated Browserslist data warning during lint

Co-authored-by: d10c <9970661+d10c@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix TypeScript build issues with Storybook module resolution Update Browserslist database to resolve lint warning Feb 2, 2026
Copilot AI requested a review from d10c February 2, 2026 10:30
@d10c d10c closed this Feb 2, 2026
@d10c d10c deleted the copilot/fix-storybook-module-resolution branch February 2, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants