René's URL Explorer Experiment


Title: docs: universal guide is missing steps · Issue #16038 · angular/angular · GitHub

Open Graph Title: docs: universal guide is missing steps · Issue #16038 · angular/angular

X Title: docs: universal guide is missing steps · Issue #16038 · angular/angular

Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...

Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request...

X Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not su...

Opengraph URL: https://github.com/angular/angular/issues/16038

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs: universal guide is missing steps","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n\u003c!-- Describe how the bug manifests. -->\r\nI cannot serve Angular Universal build when I followed only Angular Universal Docs.\r\n\r\n**Expected behavior**\r\n\u003c!-- Describe what the behavior would be without the bug. -->\r\nI can serve Universal build successfully.\r\n\r\nIt is great Document. Thank you!\r\nBut, It has missing steps for serving AOT or Universal build.\r\n\r\n# 1. There is no explanation about index-aot.html\r\nOf course, It is not hard. I succeed with below code.\r\n```html\r\n\u003c!DOCTYPE html>\r\n\u003chtml>\r\n  \u003chead>\r\n    \u003cbase href=\"/\">\r\n    \u003ctitle>Angular Tour of Heroes\u003c/title>\r\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n\r\n    \u003clink rel=\"stylesheet\" href=\"styles.css\">\r\n\r\n    \u003c!-- Polyfills -->\r\n    \u003cscript src=\"node_modules/core-js/client/shim.min.js\">\u003c/script>\r\n\r\n    \u003cscript src=\"node_modules/zone.js/dist/zone.js\">\u003c/script>\r\n  \u003c/head>\r\n\r\n  \u003cbody>\r\n    \u003cmy-app>Loading...\u003c/my-app>\r\n  \u003c/body>\r\n  \u003cscript src=\"dist/build.js\">\u003c/script>\r\n\u003c/html>\r\n```\r\nBut, the beginner may be confused about missing this code.\r\n\r\n# 2. webpack's output.path requires absolute path\r\nI don't know when they requires absolute path at output.path, But webpack said \"please give me absolute path at output.path\" with version webpack 2.4.1.\r\n\r\nTherefore, instead of\r\n```javascript\r\noutput: {\r\n        path: 'src/dist',\r\n        filename: 'server.js'\r\n},\r\n```\r\n, use it.\r\n```javascript\r\noutput: {\r\n        path: path.join(__dirname, 'src/dist'),\r\n        filename: 'server.js'\r\n},\r\n```\r\nor any more simple code.\r\n\r\n# 3. webpack.config.uni.js has 3 differences.\r\nDocs says..\r\n```text\r\nThe Webpack configuration file for Universal is almost the same as for AOT. There are two differences:\r\n\r\nThe entry points\r\nThe output file name\r\n```\r\nBut, Exactly, There are one more differences at plugins!\r\n\r\nIt needs to change to tsconfig-uni.json.\r\n```javascript\r\nplugins: [\r\n    new ngtools.AotPlugin({\r\n      tsConfigPath: './tsconfig-uni.json'\r\n    }),\r\n```\r\n\r\n# 4. We need @types/express \r\n\r\nThank you for super-easy Angular Universal Document!\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n\u003c!--\r\nIf the current behavior is a bug or you can illustrate your feature request better with an example, \r\nplease provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\r\n-->\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\u003c!-- Describe the motivation or the concrete use case -->\r\nJust read and write code with Angular Universal Docs for learning\r\n\r\n**Please tell us about your environment:**\r\n\u003c!-- Operating system, IDE, package manager, HTTP server, ... -->\r\nNot related.\r\n\r\n* **Angular version:** 2.0.X\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version -->\r\n4.0.2\r\n\r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\r\n\u003c!-- All browsers where this could be reproduced -->\r\nNot related.\r\n \r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\nTypeScript 2.2.0\r\n\r\n* **Node (for AoT issues):** `node --version` =   \r\n6.9.4","author":{"url":"https://github.com/Develofrog","@type":"Person","name":"Develofrog"},"datePublished":"2017-04-16T18:12:24Z","url":"https://github.com/angular/angular/issues/16038"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a83338ab-b606-1959-7bd1-c1d25ee4583e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idACD2:1EC9BC:15996A7:1B892BF:6B0133F3
html-safe-nonceea87f239f199932a3f69e8e16b764d30245aa039f883b97e5c8c26b1a0be0f5c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0QyOjFFQzlCQzoxNTk5NkE3OjFCODkyQkY6NkIwMTMzRjMiLCJ2aXNpdG9yX2lkIjoiNDgwNTQxMDU1MDE3MzQ3OTkyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd4a702450d5792f08508f429d8eea18f831cefd5bf6e7320fd2113163cfa0bda
hovercard-subject-tagissue:222024251
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/16038/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d11dd7883a205c0e5f2bfd15a518bb6e73976cff6d9ee0881d3770f6719fa451/angular/angular/issues/16038
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d11dd7883a205c0e5f2bfd15a518bb6e73976cff6d9ee0881d3770f6719fa451/angular/angular/issues/16038
og:image:altI'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDevelofrog
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/16038#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F16038
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F16038
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/16038
Reloadhttps://github.com/angular/angular/issues/16038
Reloadhttps://github.com/angular/angular/issues/16038
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/16038
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/16038
docs: universal guide is missing stepshttps://github.com/angular/angular/issues/16038#top
area: serverIssues related to server-side renderinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20server%22
freq3: highhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/Develofrog
Develofroghttps://github.com/Develofrog
on Apr 16, 2017https://github.com/angular/angular/issues/16038#issue-222024251
Nexthttps://github.com/angular/angular/issues/16038?timeline_page=1
tboschhttps://github.com/tbosch
comp: aiohttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20aio%22
on Apr 17, 2017https://github.com/angular/angular/issues/16038#event-1045272287
https://github.com/tanis2000
tanis2000https://github.com/tanis2000
on May 11, 2017https://github.com/angular/angular/issues/16038#issuecomment-300800996
https://github.com/Swoox
Swooxhttps://github.com/Swoox
on May 23, 2017https://github.com/angular/angular/issues/16038#issuecomment-303336339
https://github.com/wnabil
wnabilhttps://github.com/wnabil
on May 29, 2017https://github.com/angular/angular/issues/16038#issuecomment-304662201
https://github.com/rafaelscosta
rafaelscostahttps://github.com/rafaelscosta
on May 29, 2017https://github.com/angular/angular/issues/16038#issuecomment-304665774
stefanpenner/es6-promise#100https://github.com/stefanpenner/es6-promise/issues/100
https://github.com/t0mpl
t0mplhttps://github.com/t0mpl
on May 30, 2017https://github.com/angular/angular/issues/16038#issuecomment-304906419
https://github.com/wnabil
wnabilhttps://github.com/wnabil
on May 31, 2017https://github.com/angular/angular/issues/16038#issuecomment-305134570
https://github.com/deveshjadon98
deveshjadon98https://github.com/deveshjadon98
on Jun 6, 2017https://github.com/angular/angular/issues/16038#issuecomment-306399246
wardbellhttps://github.com/wardbell
comp: docshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20docs%22
comp: aiohttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20aio%22
on Jun 21, 2017https://github.com/angular/angular/issues/16038#event-1133753975
wardbellhttps://github.com/wardbell
on Jun 23, 2017https://github.com/angular/angular/issues/16038#event-1135732021
kapunahelewonghttps://github.com/kapunahelewong
effort3: weekshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22effort3%3A%20weeks%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity1: confusinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity1%3A%20confusing%22
on Jan 5, 2018https://github.com/angular/angular/issues/16038#event-1411578385
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Feb 28, 2018https://github.com/angular/angular/issues/16038#event-1496014916
jenniferfellhttps://github.com/jenniferfell
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
freq3: highhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on May 29, 2018https://github.com/angular/angular/issues/16038#event-1652258757
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on May 29, 2018https://github.com/angular/angular/issues/16038#event-1652258825
jenniferfellhttps://github.com/jenniferfell
effort3: weekshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22effort3%3A%20weeks%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity1: confusinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity1%3A%20confusing%22
on May 29, 2018https://github.com/angular/angular/issues/16038#event-1652259120
https://github.com/jenniferfell
jenniferfellhttps://github.com/jenniferfell
on May 29, 2018https://github.com/angular/angular/issues/16038#issuecomment-392966121
https://github.com/jenniferfell
jenniferfellhttps://github.com/jenniferfell
on Oct 17, 2018https://github.com/angular/angular/issues/16038#issuecomment-430738759
#25752https://github.com/angular/angular/pull/25752
jenniferfellhttps://github.com/jenniferfell
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 17, 2018https://github.com/angular/angular/issues/16038#event-1910362996
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 14, 2019https://github.com/angular/angular/issues/16038#issuecomment-531449070
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 14, 2019https://github.com/angular/angular/issues/16038#event-2633948079
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/16038
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/16038
area: serverIssues related to server-side renderinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20server%22
freq3: highhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.