You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue arises during the build process when static assets are missing, causing @elysiajs/static to fail if the directory does not exist.
To resolve this, you can either register the plugin when isMainModule(import.meta.url) returns true or implement a safety check to ensure the directory exists.
Here's a refined version of your note for clarity and precision:
Side note: I noticed that the AngularAppEngine is initialized for every request, which negatively impacts performance.
Consider instantiating it once and reusing the instance:
- .get('/*', c => new AngularAppEngine().handle(c.request));+ const appEngine = new AngularAppEngine();+ .get('/*', c => appEngine.handle(c.request));
Which @angular/* package(s) are the source of the bug?
compiler, compiler-cli
Is this a regression?
Yes
Description
I'm trying to use elysia instead of
express
and the application is loading properly, but I encountered an error while building the app.It seems the build is expecting a browser directory in the .angular/prerender-root path, which is missing.
Please provide a link to a minimal reproduction of the bug
https://github.com/draylegend/elysia-static-bugs
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: