Skip to content

fix: preserve './' prefix in import path normalization (#22173) - #22198

Merged
mcollovati merged 5 commits into
mainfrom
js-import-path-warnings
Sep 15, 2025
Merged

mcollovati merged 5 commits into
mainfrom
js-import-path-warnings

Conversation

@Artur-

@Artur- Artur- commented Sep 8, 2025

Copy link
Copy Markdown
Member

The normalizePath method was removing the './' prefix when normalizing paths, causing spurious warnings about missing prefixes for generated JavaScript files. This fix preserves the original './' prefix after path normalization to prevent these unclear warning messages.

🤖 Generated with Claude Code

Fixes #22173

The normalizePath method was removing the './' prefix when normalizing
paths, causing spurious warnings about missing prefixes for generated
JavaScript files. This fix preserves the original './' prefix after
path normalization to prevent these unclear warning messages.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 8, 2025 •

Copy link
Copy Markdown
Contributor

Test Results

1 265 files  ±0  1 265 suites  ±0   1h 15m 40s ⏱️ -7s
8 639 tests +2  8 572 ✅ +2  67 💤 ±0  0 ❌ ±0 
9 100 runs   - 2  9 023 ✅  - 2  77 💤 ±0  0 ❌ ±0 

Results for commit 440c8d5. ± Comparison against base commit 87b790e.

♻️ This comment has been updated with latest results.

@vaadin-bot vaadin-bot added +1.0.0 and removed +0.0.1 labels Sep 12, 2025
@vaadin-bot vaadin-bot added +0.0.1 and removed +1.0.0 labels Sep 12, 2025
@sonarqubecloud

Copy link
Copy Markdown

@mcollovati
mcollovati merged commit 6a10ab9 into main Sep 15, 2025
@mcollovati
mcollovati deleted the js-import-path-warnings branch September 15, 2025 07:52
@vaadin-bot

Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.0.0-alpha10.

Copilot AI pushed a commit that referenced this pull request Oct 1, 2025
The normalizePath method was removing the './' prefix when normalizing
paths, causing spurious warnings about missing prefixes for generated
JavaScript files. This fix preserves the original './' prefix after
path normalization to prevent these unclear warning messages.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unclear warning message about "Use the './' prefix for files in the xxx folder: xxxx, please update your annotations."

4 participants