-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
ɵPendingTasksInternal is not exported by node_modules/@angular/core/fesm2022/core.mjs #1652
Comments
I just had this too, I've just been updating dependencies, which as solved the issue for me (here). (and introduced a new issue, where the build consumes WAY too much memory) |
I tested a new Angular 18 app with the content package and it works correctly. Make sure you delete your node_modules and reinstall after upgrading. @Lissy93 how much more memory is it? You can try disabling sourcemaps in Nitro to decrease memory usage. Its a known issue |
Hey @brandonroberts Thanks for the suggestion. I've tried disableing sourcemaps, but no luck. The issue persists. Locally the build does eventually succeed; if I allocate it tons of mem and wait 10 minutes. But on Vercel it fails with an out of memory issue. Code I am trying with is on: https://github.com/Lissy93/domain-locker/tree/fix/vercel I've been going round in circles for last 48 hours after upgrading dependencies with this. So any more suggestions would be much appreciated. P.S I really enjoyed working with Analog on this project, thank you and your team for all your work 💖 |
@Lissy93 thanks! Will definitely take a look. Thanks for the repo |
Thank you Brandon I'm still strugling with this, since upgrading Angular + Analog, my Vercel builds no longer work, because they run out of mem everytime (on the Building Server phase).
What I've tried:
Steps to reproduceDeploying to Vercel
or Running Locally
Then can build with I'm next working on trying to create a mimimal reproducable sample repo. But if you've got any ideas or pointers, that would be really really helpful. |
@Lissy93 I did look at your repo and was able to reproduce the OOM errors locally. One thing to add to the analog({
nitro: {
sourcemap: false
}
}); I also opened a PR that does not include the server assets in the build process, which decreases the overall size of the server build and uses less memory due to less assets being bundled. I tested the change against your repo and was able to finish the node and Vercel builds without OOM errors. You can update Analog packages to |
You can also exclude withMarkdownRenderer({ loadMermaid: import.meta.env.SSR ? undefined : () => import('mermaid') |
Please provide the environment you discovered this bug in.
@brandonroberts
I just upgraded analogjs to 1.14.0 and angular 18 and im getting the following error
[@analogjs/vite-plugin-nitro] node_modules/@analogjs/content/fesm2022/analogjs-content.mjs (2:58): "ɵPendingTasksInternal" is not exported by "node_modules/@angular/core/fesm2022/core.mjs", imported by "node_modules/@analogjs/content/fesm2022/analogjs-content.mjs".
it seem like @analogjs/content/fesm2022/analogjs-content.mjs is not compartible to angular version 18
Please advise
Which area/package is the issue in?
content
Description
I get the error when im running production build
Please provide the exception or error you saw
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: