-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
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
Angular SSR cannot use ESM modules (Domino compatibility issue) #45062
Comments
Unfortunately, this is blocked on Domino. |
Hey @alan-agius4 , Are you planning to internalise that library? What is your the plan? Unfortunately, They have not touched their code for 2 years. https://github.com/fgnass/domino |
Likely we will replace it with another implementation. |
I upgraded to Angular v14 and the issue still occurs |
any news? |
@eng-dibo, no as the issue is still open. |
as you mentioned, can we replace Domino with another implementation? |
@eng-dibo for the time being, this can be a workaround solution fgnass/domino#180 |
many thanks, hope it merged very soon |
the issue still occurs - angular14 |
I took a look at the |
It seems, they have been working on the fix already |
Just a quick update: the Domino-related issue was resolved and the code should be ESM-compatible now starting from v16 (you can test it using the 16.0.0-next.2 packages). Closing this ticket for now, please open a new ticket if the problem still exists in v16 packages. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
I just created a fresh Angular universal app using Angular cli. it just works fine.
however, when I just add
"type": "module"
topackage.json
and serve again (with or without rebuilding the app again) it fails with the errorStrict mode code may not include a with statement
reproduction steps
1- create a new Angular universal app
ng new example && cd example && ng add @nguniversal/express-engine
2- run
npm start
->npm run build:ssr && npm run serve:ssr
(suceesed)3- add
"type": "module"
and runnpm run serve:ssr
ornpm start
again (faild withStrict mode code may not include a with statement
)4- remove
"type": "module"
and runnpm run serve:ssr
without rebuilding the app (successed)trials
ServerModule
from imports[] im app/app.server.module.tsexport { renderModule } from '@angular/platform-server';
in app/main.server.tsnpm start
to rebuild the app (failed with the same error)Please provide a link to a minimal reproduction of the bug
https://github.com/eng-dibo/issue-angular-esm
or
https://stackblitz.com/github/eng-dibo/issue-angular-esm
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: