+
Skip to content

It's impossible to use analog with angular v18 #1730

Closed
@remes2000

Description

@remes2000

Please provide the environment you discovered this bug in.

https://github.com/remes2000/analog-angv18-bug

Which area/package is the issue in?

content

Description

Angular v18 + analog 1.61.1 combo produces following error on console: (see error section below)

@analogjs/content expects @angular/core to have ɵPendingTasksInternal exported, but this method is not exported in Angular v18. There's however similar method called ɵPendingTasks that is exported in v18.

Angular v19 however has ɵPendingTasksInternal but has not ɵPendingTasks.

I encountered this issue while trying to upgrade my blog to newest analog + newest Angular - so I think a lot of people may encounter this error as well.

Please provide the exception or error you saw

Image
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@angular_core.js?v=7808b106' does not provide an export named 'ɵPendingTasksInternal' (at analogjs-content.mjs?v=7808b106:3:59)

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes (but to be honest I don't know how this issue could be fixed 😅)
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载