[go: nahoru, domu]

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 not defined #88

Open
radu-matei opened this issue Dec 23, 2022 · 3 comments
Open

process not defined #88

radu-matei opened this issue Dec 23, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@radu-matei
Copy link
Member

I am trying to use an external package and the build fails with: Uncaught ReferenceError: 'process' is not defined

@radu-matei radu-matei added the bug Something isn't working label Dec 23, 2022
@karthik2804
Copy link
Collaborator
karthik2804 commented Dec 23, 2022

Which package is this? @radu-matei

It would help us to identify which parts of the API, we would need to implement.

@radu-matei
Copy link
Member Author

@karthik2804
Copy link
Collaborator
karthik2804 commented Dec 25, 2022

@radu-matei Was this error caused when importing the library outside the handleRequest function? if so it is because the process module is added to the global scope only when the function is called and set up with the values passed from spin. It should work if the library is imported inside the handleRequest function. I will look into if we can initialize it earlier so that this error does not happen when compiling with wizer.

Edit: Found the fix, will PR in the next couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants