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

Process is undefined #381

Open
dpwzone opened this issue Dec 9, 2024 · 3 comments
Open

Process is undefined #381

dpwzone opened this issue Dec 9, 2024 · 3 comments

Comments

@dpwzone
Copy link

dpwzone commented Dec 9, 2024

Steps to reproduce:

  1. Create a new typescript library
  2. Install typed-rest-client
  3. Create a new UI project
  4. Include the typescript library from step 1
  5. Call the new library's functionality

Image

Or am I misunderstanding the typed-rest-client, does it only work for direct installations, and not when included as 3rd party?

@dpwzone
Copy link
Author

dpwzone commented Dec 9, 2024

Manually added a process object to the window to try and get past that initial error, then ran into an issue where url.parse is not a function. Installed the url package, and that error went away. Now I see http.UserAgent is not a constructor.

@dpwzone
Copy link
Author

dpwzone commented Dec 9, 2024

What packages does "typed-rest-client" need to have installed, in order to work?

@dpwzone
Copy link
Author

dpwzone commented Dec 9, 2024

Okay, just for laughs, I created a vanilla angular project, and installed the "typed-rest-client", and it got the same "process is not defined" error as in my original post.

Does "typed-rest-client" just not work in Angular? If so, you might want to put a note about that on the main project page, instead of letting developers waste time with projects that don't work.

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