-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Could not load index.html #1654
Comments
Are you using any custom options in the vite config for the build? Seems like the |
Yes I do but starting a new Analog app in my NX Monorepo and using my vite.config seemed to work. What broke was copying my app folder to this new Analog app. What I understand is that something goes wrong during the build but absolutely no error is visible. Only thing I see is that the next phase can't work since client folder is empty. My build config is build: {
outDir: "../../dist/apps/marketplace/client",
reportCompressedSize: true,
sourcemap: true,
target: ["es2020"],
}, |
That's correct because you removed the What's in your |
If you can reproduce this in a small standalone repo that would help. Its hard to diagnose as you're also using Analog 2.0 alpha packages. |
OK. I'll have a look. What I don't understand is that the |
@mparpaillon That's fair. These are problems that haven't been encountered and we haven't changed anything about the build process. If you can invite me to the repo, I can take a closer look. If not, I understand. Looking back I saw you're building with 2 different versions of Vite from the screenshots. If there are 2 different versions installed that could cause issues also. |
Please provide the environment you discovered this bug in.
"@analogjs/content": "^1.10.2-beta.8",
"@analogjs/router": "^1.10.2-beta.8",
"@analogjs/trpc": "0.3.0",
"@angular-magic/ngx-gp-autocomplete": "^2.0.2",
"@angular/animations": "^19.1.0",
"@angular/cdk": "^19.1.0",
"@angular/common": "^19.1.0",
"@angular/compiler": "^19.1.0",
"@angular/core": "^19.1.0",
"@angular/forms": "^19.1.0",
"@angular/platform-browser": "^19.1.0",
"@angular/platform-browser-dynamic": "^19.1.0",
"@angular/platform-server": "^19.1.0",
"@angular/router": "^19.1.0",
"@analogjs/platform": "^2.0.0-alpha.2",
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.2",
"@analogjs/vitest-angular": "^2.0.0-alpha.2",
"@angular-devkit/build-angular": "^19.1.0",
"@angular-eslint/eslint-plugin": "^19.0.2",
"@angular-eslint/eslint-plugin-template": "^19.0.2",
"@angular-eslint/template-parser": "^19.0.2",
"@angular/build": "^19.1.0",
"@angular/cli": "^19.1.0",
"@angular/compiler-cli": "^19.1.0",
"@angular/language-service": "^19.1.0",
"@angular/ssr": "^19.1.0",
"@nx/angular": "20.2.2",
"@nx/cypress": "19.8.2",
"@nx/devkit": "19.8.2",
"@nx/eslint": "19.8.2",
"@nx/eslint-plugin": "19.8.2",
"@nx/jest": "19.8.2",
"@nx/js": "19.8.2",
"@nx/vite": "19.8.2",
"@nx/workspace": "19.8.2",
Which area/package is the issue in?
vite-plugin-nitro
Description
Hi,
The nx build task doesn't seem to work for me.
Does this error ring a bell? It seems to happen when trying to Prerender static pages.
Please provide the exception or error you saw
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: