We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I create and run MF + SSR angular project and see:
Error: Failed to lookup view "index" in views directory ".../app-ssr/dist/apps/<app name>/browser"
It is because of error inside main.server.ts files
main.server.ts
const browserBundles = join(process.cwd(), 'dist/apps/<app name>/browser'); const serverBundles = join(process.cwd(), 'dist/apps/<app name>/server');
should be
const browserBundles = join(process.cwd(), 'dist/packages/<app name>/browser'); const serverBundles = join(process.cwd(), 'dist/packages/<app name>/server');
No error
No response
npm install --global nx@latest npx create-nx-workspace@latest app-ssr --preset=ts --nxCloud=false cd app-ssr npm install -D @nx/angular npx nx g @nx/angular:host host --ssr --remotes=demo,ozon --e2eTestRunner="none" --style="scss" nx serve-ssr host --devRemotes="demo,ozon"
Node : 18.16.0 OS : darwin-x64 npm : 9.5.1 nx (global) : 16.7.4 nx : 16.7.4 @nx/js : 16.7.4 @nx/jest : 16.7.4 @nx/linter : 16.7.4 @nx/workspace : 16.7.4 @nx/angular : 16.7.4 @nx/cypress : 16.7.4 @nx/devkit : 16.7.4 @nx/eslint-plugin : 16.7.4 @nrwl/tao : 16.7.4 @nx/web : 16.7.4 @nx/webpack : 16.7.4 typescript : 5.1.6 --------------------------------------- Community plugins: @nguniversal/builders : 16.2.0 @nguniversal/express-engine : 16.2.0
The text was updated successfully, but these errors were encountered:
fix(angular): use the correct output path for mf ssr nrwl#18849
10bc223
731a4bf
fix(angular): use the correct output path for mf ssr #18849 (#18906)
5a06343
v16.8.0
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Sorry, something went wrong.
Coly010
Successfully merging a pull request may close this issue.
Current Behavior
I create and run MF + SSR angular project and see:
It is because of error inside
main.server.ts
filesshould be
Expected Behavior
No error
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: