Closed as not planned
Description
Which @angular/* package(s) are the source of the bug?
platform-server
Is this a regression?
Yes
Description
I created a project using ng new
and enabled SSR when prompted. However, when I try to build the project, even without making any changes, the build process fails to complete. The issue seems very similar to nrwl/nx#20481
Please provide a link to a minimal reproduction of the bug
https://github.com/DesignThinkerer/ciqual-calculator
Please provide the exception or error you saw
ng build --verbose
\ Building...
polyfills-6EAL64PA.js 33.4kb
Done in 65ms
polyfills.server.mjs 262.0kb
\ Building...
● [DEBUG] Lookbehind assertions in regular expressions are not available in the configured target environment ("chrome125.0", "edge124.0", "firefox115.0", "ios16.0", "node22.0.0", "safari16.0" + 5 overrides) [unsupported-regexp]
node_modules/critters/dist/critters.mjs:1341:51:
1341 │ const crittersComment = rule.text.match(/^(?<!\! )critters:(.*)/);
╵ ~~~
This regular expression literal has been converted to a "new RegExp()" constructor to avoid
generating code with a syntax error. However, you will need to include a polyfill for "RegExp" for
your code to have the correct behavior at run-time.
● [DEBUG] Lookbehind assertions in regular expressions are not available in the configured target environment ("chrome125.0", "edge124.0", "firefox115.0", "ios16.0", "node22.0.0", "safari16.0" + 5 overrides) [unsupported-regexp]
node_modules/critters/dist/critters.mjs:1399:30:
1399 │ sel = sel.replace(/(?<!\\)::?[a-z-]+(?![a-z-(])/gi, '').replace(/::?not\(\s...
╵ ~~~
This regular expression literal has been converted to a "new RegExp()" constructor to avoid
generating code with a syntax error. However, you will need to include a polyfill for "RegExp" for
your code to have the correct behavior at run-time.
- Building...
● [DEBUG] This call to "require" will not be bundled because the argument is not a string literal [unsupported-require-call]
node_modules/express/lib/view.js:72:13:
72 │ var fn = require(mod).__express;
╵ ~~~~~~~
\ Building...
main-V4TD7P4G.js 211.0kb
\ Building...
● [DEBUG] Indirect calls to "require" will not be bundled [indirect-require]
node_modules/picocolors/picocolors.js:3:163:
3 │ ...r") || process.platform === "win32" || require != null && require("tty").isatty(1) &&...
╵ ~~~~~~~
/ Building...
server.mjs 1.1mb
chunk-T4GESVRS.mjs 511.4kb
chunk-YFZUPLDY.mjs 18.8kb
chunk-44PQKHNF.mjs 11.8kb
chunk-NDYDZJSS.mjs 2.5kb
render-utils.server.mjs 1.4kb
main.server.mjs 149b
/ Building...
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 18.0.5
Node: 22.2.0
Package Manager: npm 10.8.1
OS: win32 x64
Angular: 18.0.4
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1800.5
@angular-devkit/build-angular 18.0.5
@angular-devkit/core 18.0.5
@angular-devkit/schematics 18.0.5
@angular/cli 18.0.5
@angular/ssr 18.0.5
@schematics/angular 18.0.5
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.7
Anything else?
No response
Metadata
Metadata
Assignees
Labels
No labels