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

Failure when doing domain pdf #104

Closed
akc42 opened this issue May 11, 2024 · 1 comment
Closed

Failure when doing domain pdf #104

akc42 opened this issue May 11, 2024 · 1 comment
Milestone

Comments

@akc42
Copy link
Owner

akc42 commented May 11, 2024

money:pdfdomain Rollback error ReferenceError: __dirname is not defined
    at codeHeader (file:///app/server/pdf/domain.js:76:20)
    at file:///app/server/pdf/domain.js:199:9
    at sqliteTransaction (/app/node_modules/better-sqlite3/lib/methods/transaction.js:65:24)
    at Object.default [as domain] (file:///app/server/pdf/domain.js:267:7)
    at file:///app/server/server.js:521:22
    at Layer.handle [as handle_request] (/app/node_modules/router/lib/layer.js:93:5)
    at next (/app/node_modules/router/lib/route.js:161:13)
    at Route.dispatch (/app/node_modules/router/lib/route.js:121:3)
    at handle (/app/node_modules/router/index.js:532:11)
    at Layer.handle [as handle_request] (/app/node_modules/router/lib/layer.js:93:5) +9ms
@akc42
Copy link
Owner Author

akc42 commented May 11, 2024

Same problem in account pdf - its related to using "__dirname, <directory>, in path.resolve which is no longer valid instead use
new URL(<directory>, import.meta.url).pathname

@akc42 akc42 closed this as completed May 11, 2024
@akc42 akc42 added this to the 4.2.2 milestone May 11, 2024
akc42 added a commit that referenced this issue May 11, 2024
akc42 added a commit that referenced this issue May 11, 2024
akc42 added a commit that referenced this issue May 11, 2024
akc42 added a commit that referenced this issue May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant