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
I've narrowed it down: injectEndpoints: false no longer errors, which makes sense since that code calls path.dirname and path.join, although that code is not included in the built file.
This is the first few lines of the built file that seems to be causing issues. ./dist/$server_build/chunks/pages/{hash}.mjs:
Found a resolution by removing the path import in [...auth].ts and replacing it with a package import as recommended here. I did it using my packages name, but I'll create a draft pr to show the diff at least
Repro:
https://github.com/its-jman/auth-astro-repro
When running
astro build
withauth()
included as an integration, the build fails sayingThe package "path" wasn't found on the file system...
.There seems to be a
import "path";
injected at the beginning of the build output which causes this errorIf you have ideas I'm happy to investigate further, but I haven't found any solutions so far.
astro.config.mjs
:The text was updated successfully, but these errors were encountered: