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

TypeError: Cannot set property constructor of [object Object] which has only a getter #1682

Open
2 tasks done
albertopiva opened this issue Sep 22, 2024 · 0 comments
Open
2 tasks done

Comments

@albertopiva
Copy link

What were you trying to do?

I'm trying to compile the project

How did you attempt to do it?

Following the guidelines in MAINTAINERSHIP.md, I run the build command.

Note: I only cloned the repo, installed the node_modules and ran the build command.

What actually happened?

It crashes with the following error:

/pdf-lib/node_modules/ttypescript/lib/loadTypescript.js:11
        function __() { this.constructor = d; }
                                         ^

TypeError: Cannot set property constructor of [object Object] which has only a getter

What did you expect to happen?

I expect to see the expected output as described in MAINTAINERSHIP.md.

How can we reproduce the issue?

You only need to clone the project, install node_modules and run the build command.

Version

v1.17.1

What environment are you running pdf-lib in?

Node

Checklist

  • My report includes a Short, Self Contained, Correct (Compilable) Example.
  • I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant