GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Vitest coverage issue `vite:import-analysis` error `Pre-transform error: Failed to resolve import "#/util" from "src/app/app.ts". Does the file exist?` · Issue #32891 · angular/angular-cli Open Labels angular/build:unit-testarea: @angular/buildgemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by gemini DescriptionCommandtest Is this a regression?
The previous version in which this bug was not present wasDescriptionI'm not sure if this issue is an issue with Vitest, or the Angular CLI integration with Vitest. I put the issue here, because I have no idea how to reproduce this issue without Angular at the moment. The issue is that when using This results in errors during coverage generation, but tests do not crash. The errors come from Vite's dev server pre transforming original Requirements
Minimal Reproduction
export const greet = 'Hello';
{
"compilerOptions": {
"paths": {
"#/util": ["./src/app/util.ts"]
}
}
}
import { greet } from '#/util'; // ... export class App { protected readonly title = signal(greet); }
import './app';
Exception or ErrorYour EnvironmentAnything else relevant?Does not seem to be OS specific. The issue is on GitHub Actions on Ubuntu, and locally on Windows. Activity
MetadataMetadataAssigneesLabelsangular/build:unit-testarea: @angular/buildgemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by gemini TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |