Closed
Description
Please provide the environment you discovered this bug in.
I think I found the origin of the problem: "no platform exist"
This only concerns projects using modules
main.ts
platformBrowser()
.bootstrapModule(ModulexModule)
.catch((err) => console.error(err));
vite.config.mts
...
server: {
deps: {
inline: ["@angular/core"],
},
},
...
- when i adding inline:
["@angular/core"],
----> "no platform exist" appear on vitest run - if I don't put this line then vites fails and asks me to put it
- I started from an empty project and I noticed this
Angular 20
angular-vitest-new-brandon.zip
npm i
npm run test:vitest:ui
Which area/package is the issue in?
vite-plugin-angular
Description
No platform exists!
Please provide the exception or error you saw
Other information
No response
I would be willing to submit a PR to fix this issue
- Yes
- No