Skip to content

Comments

feat: add import path for unresolved import diagnostics#7625

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-22-feat_add_import_path_for_unresolved_import_diagnostics
Dec 23, 2025
Merged

feat: add import path for unresolved import diagnostics#7625
graphite-app[bot] merged 1 commit intomainfrom
12-22-feat_add_import_path_for_unresolved_import_diagnostics

Conversation

@sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Dec 22, 2025

Added a help for UNRESOLVED_IMPORT error to output the import path.

[UNRESOLVED_IMPORT] Error: Could not resolve '../pkg' in node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js
    ╭─[ node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js:17:28 ]
    │
 17 │   module.exports = require(`../pkg`);
    │                            ────┬───  
    │                                ╰───── Module not found.
    │ 
    │ Help: 'node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js' is imported by the following path:
    │         - node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js
    │         - node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.mjs
    │         - node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/node.js
    │         - node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/index.js
    │         - src/main.tsx
    │         - index.html
────╯

Copy link
Member Author

sapphi-red commented Dec 22, 2025


How to use the Graphite Merge Queue

Add the label graphite: merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

Benchmarks Rust

  • target: main(e434577)
  • pr: 12-22-feat_add_import_path_for_unresolved_import_diagnostics(3a0e731)
group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.00     60.2±0.98ms        ? ?/sec    1.04     62.7±1.38ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.00     66.6±0.94ms        ? ?/sec    1.05     69.6±1.80ms        ? ?/sec
bundle/bundle@rome_ts                                        1.00    105.3±3.06ms        ? ?/sec    1.03    108.2±2.25ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.00    117.0±2.66ms        ? ?/sec    1.02    119.7±1.99ms        ? ?/sec
bundle/bundle@threejs                                        1.00     38.3±0.45ms        ? ?/sec    1.02     39.0±2.20ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.00     42.1±0.44ms        ? ?/sec    1.01     42.6±0.84ms        ? ?/sec
bundle/bundle@threejs10x                                     1.00    390.8±3.97ms        ? ?/sec    1.02    396.9±8.09ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.01    454.9±4.79ms        ? ?/sec    1.00    452.3±3.94ms        ? ?/sec
scan/scan@rome_ts                                            1.00     83.0±1.46ms        ? ?/sec    1.02     84.8±1.48ms        ? ?/sec
scan/scan@threejs                                            1.00     28.2±0.36ms        ? ?/sec    1.02     28.6±1.63ms        ? ?/sec
scan/scan@threejs10x                                         1.00    293.3±5.23ms        ? ?/sec    1.03    300.7±5.63ms        ? ?/sec

Copy link
Member

hyf0 commented Dec 22, 2025

Merge activity

@graphite-app graphite-app bot changed the base branch from 12-22-refactor_allow_multiple_help_messages_in_diagnostics to graphite-base/7625 December 22, 2025 17:27
@graphite-app graphite-app bot force-pushed the 12-22-feat_add_import_path_for_unresolved_import_diagnostics branch from 19af45b to 78c2c6b Compare December 22, 2025 17:38
@graphite-app graphite-app bot force-pushed the graphite-base/7625 branch from 434f788 to 5f12334 Compare December 22, 2025 17:38
@graphite-app graphite-app bot changed the base branch from graphite-base/7625 to main December 22, 2025 17:38
@graphite-app graphite-app bot force-pushed the 12-22-feat_add_import_path_for_unresolved_import_diagnostics branch from 78c2c6b to 061f76c Compare December 22, 2025 17:38
@netlify
Copy link

netlify bot commented Dec 22, 2025

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 3a0e731
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6949eed4eb11c000086a1006

graphite-app bot pushed a commit that referenced this pull request Dec 23, 2025
Added a help for UNRESOLVED_IMPORT error to output the import path.
```
[UNRESOLVED_IMPORT] Error: Could not resolve '../pkg' in node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js
    ╭─[ node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js:17:28 ]
    │
 17 │   module.exports = require(`../pkg`);
    │                            ────┬───
    │                                ╰───── Module not found.
    │
    │ Help: 'node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js' is imported by the following path:
    │         - node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js
    │         - node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.mjs
    │         - node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/node.js
    │         - node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/index.js
    │         - src/main.tsx
    │         - index.html
────╯
```
Copilot AI review requested due to automatic review settings December 23, 2025 01:20
@graphite-app graphite-app bot force-pushed the 12-22-feat_add_import_path_for_unresolved_import_diagnostics branch from 061f76c to ed6c962 Compare December 23, 2025 01:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Added a help for UNRESOLVED_IMPORT error to output the import path.
```
[UNRESOLVED_IMPORT] Error: Could not resolve '../pkg' in node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js
    ╭─[ node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js:17:28 ]
    │
 17 │   module.exports = require(`../pkg`);
    │                            ────┬───
    │                                ╰───── Module not found.
    │
    │ Help: 'node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js' is imported by the following path:
    │         - node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.js
    │         - node_modules/.pnpm/[email protected]/node_modules/lightningcss/node/index.mjs
    │         - node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/node.js
    │         - node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/index.js
    │         - src/main.tsx
    │         - index.html
────╯
```
@graphite-app graphite-app bot force-pushed the 12-22-feat_add_import_path_for_unresolved_import_diagnostics branch from ed6c962 to 3a0e731 Compare December 23, 2025 01:22
@graphite-app graphite-app bot merged commit 3a0e731 into main Dec 23, 2025
34 checks passed
@graphite-app graphite-app bot deleted the 12-22-feat_add_import_path_for_unresolved_import_diagnostics branch December 23, 2025 01:35
This was referenced Dec 24, 2025
shulaoda added a commit that referenced this pull request Dec 24, 2025
## [1.0.0-beta.57] - 2025-12-24

✨ TypeScript Project References Support
- Rolldown now supports TypeScript project references when manually specifying a `tsconfig`
- See more details: https://rolldown.rs/options/tsconfig

💥 Rename `__export` to `__exportAll`
- Update `rolldown-plugin-dts` to the latest version for compatibility

### 💥 BREAKING CHANGES

- tsconfig: enable project references support in manual mode (#7545) by @shulaoda

### 🚀 Features

- add `CANNOT_CALL_NAMESPACE` warning (#7636) by @sapphi-red
- add import path for unresolved import diagnostics (#7625) by @sapphi-red
- optimize dynamic entry facade chunks by merging with common chunks when they are captured by common chunks (#7486) by @IWANABETHATGUY

### 🐛 Bug Fixes

- rename `__export` to `__exportAll` to be compatible with `cjs-module-lexer` (#7640) by @IWANABETHATGUY
- strip UTF-8 BOM when using text loader (#7635) by @sapphi-red
- rolldown_plugin_replace: avoid crashing with invalid delimiters (#7621) by @sapphi-red

### 🚜 Refactor

- export all filter functions (#7622) by @sxzz
- allow multiple help messages in diagnostics (#7624) by @sapphi-red

### 📚 Documentation

- add README.md to packages/rolldown (#7556) by @Copilot

### ⚡ Performance

- use fsevents on macOS for file watching (#7596) by @sapphi-red

### 🧪 Testing

- handle re-exports of external modules in CJS format (#7641) by @IWANABETHATGUY
- update integration to use vite's rolldown-canary branch (#7633) by @shulaoda

### ⚙️ Miscellaneous Tasks

- docs: fix Netlify ignore condition to detect docs changes across all PR commits (#7637) by @Copilot
- deps: update rollup submodule for tests to v4.54.0 (#7630) by @sapphi-red
- skip benchmarks for PRs with 'graphite: merge-when-ready' label (#7631) by @Boshen
- deps: update esbuild for tests to 0.27.2 (#7629) by @sapphi-red
- fix "update-test-dependencies" workflow (#7628) by @sapphi-red
- deps: update test262 submodule for tests (#7626) by @sapphi-red
- deps: update dependency oxlint to v1.35.0 (#7623) by @renovate[bot]

Co-authored-by: shulaoda <[email protected]>
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.

3 participants