Skip to content
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

[Clover] Module not found: Error: Can't resolve '@angular/platform-server/init' ... #24188

Closed
1 of 3 tasks
Yberion opened this issue Nov 5, 2022 · 1 comment · Fixed by #24191
Closed
1 of 3 tasks

Comments

@Yberion
Copy link

Yberion commented Nov 5, 2022

🐞 Bug report

What modules are related to this issue?

  • builders
  • common
  • express-engine

Is this a regression?

Since I updated to Universal/Angular 15 next, the probleme appeared, it worked properly on last version of Universal/Angular 14.

Description

I am trying to build the SSR server using Clover Engine, then I'm getting an error.

🔬 Minimal Reproduction

  1. Clone https://github.com/Yberion/Angular-SSR-Clover-Engine
  2. npm run build:server:fastify

🔥 Exception or Error

Error: Module not found: Error: Can't resolve '@angular/platform-server/init' in 'D:\GitHub\Angular-SSR-Clover-Engine'

🌍 Your Environment


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 15.0.0-rc.2
Node: 18.12.1
Package Manager: npm 8.19.2
OS: win32 x64

Angular: 15.0.0-rc.2
... cli, common, compiler, compiler-cli, core, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.0-rc.2
@angular-devkit/build-angular   15.0.0-rc.2
@angular-devkit/core            15.0.0-rc.2
@angular-devkit/schematics      15.0.0-rc.2
@nguniversal/common             15.0.0-next.1
@schematics/angular             15.0.0-rc.2
rxjs                            7.5.7
typescript                      4.8.4
@alan-agius4 alan-agius4 transferred this issue from angular/universal Nov 5, 2022
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Nov 7, 2022
…r/init` when package is installed.

This commit fixes an issue where `@angular/platform-server/init` was added as an entry-point during the server build even when this was not intstalled.

Closes angular#24188
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Nov 7, 2022
…r/init` when package is installed.

This commit fixes an issue where `@angular/platform-server/init` was added as an entry-point during the server build even when this was not installed.

Closes angular#24188
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Nov 7, 2022
…r/init` when package is installed.

This commit fixes an issue where `@angular/platform-server/init` was added as an entry-point during the server build even when this was not installed.

Closes angular#24188
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Nov 7, 2022
…r/init` when package is installed.

This commit fixes an issue where `@angular/platform-server/init` was added as an entry-point during the server build even when this was not installed.

Closes angular#24188
alan-agius4 added a commit that referenced this issue Nov 7, 2022
…r/init` when package is installed.

This commit fixes an issue where `@angular/platform-server/init` was added as an entry-point during the server build even when this was not installed.

Closes #24188

(cherry picked from commit d754b72)
alan-agius4 added a commit that referenced this issue Nov 7, 2022
…r/init` when package is installed.

This commit fixes an issue where `@angular/platform-server/init` was added as an entry-point during the server build even when this was not installed.

Closes #24188
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants