-
-
Notifications
You must be signed in to change notification settings - Fork 287
Description
Please provide the environment you discovered this bug in.
`{
"name": "fresh-project",
"version": "0.0.0",
"type": "module",
"engines": {
"node": ">=20.19.1"
},
"scripts": {
"ng": "ng",
"dev": "vite",
"start": "npm run dev",
"build": "vite build",
"watch": "vite build --watch",
"test": "vitest",
"preview": "node dist/analog/server/index.mjs"
},
"private": true,
"dependencies": {
"@analogjs/content": "^1.20.2",
"@analogjs/router": "^1.20.2",
"@angular/animations": "^20.0.0",
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/forms": "^20.3.0",
"@angular/platform-browser": "^20.0.0",
"@angular/platform-browser-dynamic": "^20.3.0",
"@angular/platform-server": "^20.3.0",
"@angular/router": "^20.3.0",
"@tailwindcss/vite": "^4.1.13",
"postcss": "^8.5.6",
"rxjs": "~7.8.0",
"tailwindcss": "^4.1.4",
"tslib": "^2.8.1",
"zone.js": "^0.15.1"
},
"devDependencies": {
"@analogjs/platform": "^1.20.2",
"@analogjs/vite-plugin-angular": "^1.20.2",
"@analogjs/vitest-angular": "^1.20.2",
"@angular/build": "^20.3.1",
"@angular/cli": "^20.3.1",
"@angular/compiler-cli": "^20.3.0",
"jsdom": "^22.1.0",
"typescript": "~5.8.0",
"vite": "^7.1.5",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^3.2.4"
},
"overrides": {
"@analogjs/platform": {
"vite": "$vite"
}
}
}
Which area/package is the issue in?
create-analog
Description
Hello Guys there is an error creating a new project from scract with npm create analogjs@latest
or running npm update
after those I got this error message
Please provide the exception or error you saw
An error occured while server rendering /index.html:
NG0401: Missing Platform: This may be due to using `bootstrapApplication` on the server without passing a `BootstrapContext`. Please make sure that `bootstrapApplication` is called with a `context` argument.
Error: NG0401: Missing Platform: This may be due to using `bootstrapApplication` on the server without passing a `BootstrapContext`. Please make sure that `bootstrapApplication` is called with a `context` argument.
at internalCreateApplication (C:\Users\Admin\darwin_arm64-fastbuild-ST-199a4f3c4e20\bin\packages\core\src\application\create_application.ts:49:11)
at C:\Users\Admin\darwin_arm64-fastbuild-ST-199a4f3c4e20\bin\packages\platform-browser\src\browser.ts:160:44
at async renderApplication (C:\Users\Admin\darwin_arm64-fastbuild-ST-199a4f3c4e20\bin\packages\platform-server\src\utils.ts:335:28)
at async render (C:\Users\Admin\analogssr\src\entry-server:15:18)
at async file:///C:/Users/Admin/analogssr/node_modules/@analogjs/vite-plugin-nitro/src/lib/plugins/dev-server-plugin.js:51:38
Click outside, press Esc key, or fix the code to dismiss.
You can also disable this overlay by setting server.hmr.overlay to false in vite.config.ts.
Other information
No response
I would be willing to submit a PR to fix this issue
- Yes
- No