Bug: `React.renderToPipeableStream` `bootstrapScripts` does not render `noModule`

This issue has been created since 2022-11-24.

We've noticed that React.renderToPipeableStream does not append a noModule to the normal script module when both bootstrapScripts and bootstrapModules are present. This makes it impossible to not run the same code twice while having both versions (js and mjs).

React version: ^18.2.0

Steps To Reproduce

Call the following:

ReactDOMServer.renderToPipeableStream(container, {
  bootstrapModules: ['app.mjs'],
  bootstrapScripts: ['app.js'],
...
}

The current behavior (this is rendered)

<script src="app.js" async=""></script>
<script type="module" src="app.mjs" async=""></script>

The expected behavior (the noModule is appended)

<script noModule src="app.js" async=""></script>
<script type="module" src="app.mjs" async=""></script>
More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-12-10
Star Count 198882
Watcher Count 6638
Fork Count 41302
Issue Count 1120

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Fatal Error: mcrypt.h - no such file or directory 2 2022-04-26 2022-09-30
Partial OpenSearchCluster spec > security > tls results in controller validation error 1 2022-05-10 2022-11-25
Use AES-256 as encryption method for zip export 5 2022-07-27 2022-08-25
Add tests for differentiation of `constexpr` and `consteval` functions 3 2022-04-30 2022-12-01
[Bug]: Invalid Data Structure Prowler CSV Report 3 2022-10-08 2022-11-07
The "New name:" dialog box text string in the File > Duplicate... dialog box should be replaced with a new dialog box text string 1 2021-09-23 2022-08-01
Sun icon for entire day in several cities 6 2021-02-26 2022-12-05
Bloodhound: AddKeyCredentialLink show an error on dialog info/abuse box 1 2022-02-10 2022-10-16
Week only with week highlight 1 2017-03-15 2022-12-01
Is there a way to make the heatmap show data from last 365 days? 3 2016-08-08 2022-12-01
error transcoding .mov files? 5 2022-05-16 2022-11-29
Add support for wlr_output_management? 4 2020-02-01 2022-11-20
Abort after "ctx = cl.create_some_context()" 1 2021-05-25 2022-12-08
Make ctrl-c play nicely with capybara 4 2019-02-18 2022-12-03
Feature Request: GraphQL Subscriptions Implementation 26 2019-03-09 2022-12-03
Deprecate / remove driver in favour of binder 30 2022-07-15 2022-11-13
Prometheus endpoint results in error 0 2022-05-04 2022-09-28
simplest video example 2 2022-02-08 2022-04-20
Error "couldn't open font" in `video.add_text` after a while 2 2022-02-09 2022-04-20
BiglyBT uses up free space on drive C after running for hours/days 16 2022-04-14 2022-11-29
why i get register_atfork when startup minicap 2 2019-11-08 2022-11-30
Clicking active filter/tag/source should reload it 2 2021-11-23 2022-11-05
delete_template for boto3.client("ses") does not work 2 2022-02-08 2022-12-09
Few jobs are not processed by sidekiq 1 2022-05-01 2022-09-15
psqldef can't add unique constraint. 7 2021-12-01 2022-11-20
SMBApiException: STATUS_REQUEST_NOT_ACCEPTED (0xc00000d0) 3 2020-05-27 2022-11-01
Structure of Build an initial strategy section 4 2022-03-04 2022-12-05
'render' function unexpectedly removes vendor prefixed css properties 4 2022-06-09 2022-12-01
Report more types of failure to Bugsnag 2 2022-02-01 2022-11-26
monolithic-service uses generics to simplify registering Handler routing 1 2022-07-28 2022-11-20
kubernetes.io/cluster tag not set on autoscaling group 0 2021-04-16 2022-12-02
Build (daily, --no-build-cache) #237 failed 0 2022-11-18 2022-12-01
Missing one step 1 2021-08-26 2022-01-11
Issue about ValueError: Images of type float must be between -1 and 1 11 2019-02-27 2022-12-01
Astro Cloud - GitHub Actions CI/CD Example incorrectly formatted 1 2021-10-07 2022-10-06
Publish `extra` dir on crates io as well 2 2022-08-05 2022-09-28
Bug: Workspace Memory consumption 2 2021-06-14 2022-12-04
Leader election events are recorded with the wrong config 0 2022-02-09 2022-10-11
vipsthumbnail - resize PNG without antialias 1 2022-10-07 2022-11-26
Custom dzsave output filename 1 2022-10-11 2022-12-10
AUDIO_HAL_I2S_DSP usage (AUD-2896) 11 2021-03-25 2022-12-05
Update README.md 0 2021-12-01 2022-01-22
Feature request: Add complex support to `torch.nanmean` 2 2022-01-19 2022-11-05
Pagedown.rbind.io blocked by institutional firewall 4 2019-01-03 2022-11-26
Audio not working on Chromebook Pixel 2 0 2021-12-27 2022-11-22
Espanso and OSX sleep 2 2022-04-13 2022-11-06
Release RC (release candidate) for v5 3 2021-11-18 2022-10-24
macos-latest (11.6) is not longer working with pypy3 4 2021-09-23 2022-10-19
Images not appearing on Android App with RC1 2 2022-04-15 2022-11-14
ZoomPageTransitionsBuilder black flickering on top 5 2022-11-14 2022-11-26