Title: Nestjs example configuration error when using build · Issue #257 · rstackjs/rstack-examples · GitHub
Open Graph Title: Nestjs example configuration error when using build · Issue #257 · rstackjs/rstack-examples
X Title: Nestjs example configuration error when using build · Issue #257 · rstackjs/rstack-examples
Description: Position https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/nestjs/rspack.config.js How to reproduce The package.json: "build": "cross-env BUILD=true rspack build", npm run build Error: [HMR] Hot Module Replacement is dis...
Open Graph Description: Position https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/nestjs/rspack.config.js How to reproduce The package.json: "build": "cross-env BUILD=true rspack build", npm run build Er...
X Description: Position https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/nestjs/rspack.config.js How to reproduce The package.json: "build": "cross-env BUILD=true rspack build&quo...
Opengraph URL: https://github.com/rstackjs/rstack-examples/issues/257
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nestjs example configuration error when using build","articleBody":"## Position\n\nhttps://github.com/rspack-contrib/rstack-examples/blob/main/rspack/nestjs/rspack.config.js\n\n## How to reproduce\n\nThe package.json: `\"build\": \"cross-env BUILD=true rspack build\",`\n\n```\nnpm run build\n```\n\nError: [HMR] Hot Module Replacement is disabled.\n\n## My workarround\n\nbuild mode does not import `@rspack/core/hot/poll?100`\n\n```ts\nconst isProduction = process.env.BUILD === 'true';\n\n/** @type {import('@rspack/cli').Configuration} */\nconst config = {\n context: __dirname,\n target: 'node',\n entry: {\n main: isProduction\n ? './src/main.ts'\n : ['@rspack/core/hot/poll?100', './src/main.ts'],\n },\n\n...","author":{"url":"https://github.com/andrewfung729","@type":"Person","name":"andrewfung729"},"datePublished":"2025-03-19T01:49:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/257/rstack-examples/issues/257"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9942e548-c793-e9fb-3e88-a2789680976d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A352:36D01B:2CA83E6:3EA8EF4:69710A96 |
| html-safe-nonce | ed90f94a1ebf9385eab9f192d810cd74283c4daff51760b8d305217cb998178e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzUyOjM2RDAxQjoyQ0E4M0U2OjNFQThFRjQ6Njk3MTBBOTYiLCJ2aXNpdG9yX2lkIjoiNTEyNzQzNTM5ODQ2NzQ0NzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c1d91a80931d6cddcc1a36e5b9c86e3a38bbb0463f909e955b701b3f8cb0fb4e |
| hovercard-subject-tag | issue:2930223501 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rstackjs/rstack-examples/257/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e302ad52ef6eb8c9a95ffe277e2c68f10a496a03e7f857910e98993ca4f798c0/rstackjs/rstack-examples/issues/257 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e302ad52ef6eb8c9a95ffe277e2c68f10a496a03e7f857910e98993ca4f798c0/rstackjs/rstack-examples/issues/257 |
| og:image:alt | Position https://github.com/rspack-contrib/rstack-examples/blob/main/rspack/nestjs/rspack.config.js How to reproduce The package.json: "build": "cross-env BUILD=true rspack build", npm run build Er... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrewfung729 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6d0e7b0d5e294a53c55f49e80755e785182080c6e6a48c9ed353bedddaee69f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/rstackjs/rstack-examples git https://github.com/rstackjs/rstack-examples.git |
| octolytics-dimension-user_id | 129049372 |
| octolytics-dimension-user_login | rstackjs |
| octolytics-dimension-repository_id | 721103420 |
| octolytics-dimension-repository_nwo | rstackjs/rstack-examples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 721103420 |
| octolytics-dimension-repository_network_root_nwo | rstackjs/rstack-examples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d5a3a396bc74e65fd3ef897b0a99a6e489debaa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width