-
Notifications
You must be signed in to change notification settings - Fork 230
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
null & undefined in react build #129
Comments
Can you please provide more details or your |
Were you guys able to fix this? Even I have the same issue and it seems like this is originating from react-sketch itself. However its blowing up in utils.js of another package called whatwg-url. |
I created a new typescript project and added just this piece of code
Of course it was complaining about no types being found, so I created another file called types.d.ts and added this into that file:
If I do
Not sure how to proceed and fix this. |
I have the exact same issue. In development mode everything is working, if I do The error goes away if I install and import |
I have exactly the same error. Everything works fine locally, but the above error pops up after the build. I was inquiring where it came from, it points to the utils of the Is it possible to fix this error? It makes the package completely useless |
I am getting the same issue. |
Any updates? |
I changed the package into |
@sptaszek92 Thanks. It works... However, my problem was something else that I'm going to post here: For those who get the "this is undefined" error leading to this page: When defining your classes, change the arrow functions I faced the mentioned error and spent 2-3 hours searching for the answer. The weird thing was there is no error in your |
Glad to hear it's solved! I think the reason your new package works now is somehow related to the solution I posted above. That fix might have been considered in |
Getting an error on react build
console.log
utils.js:48 Uncaught TypeError: Cannot convert undefined or null to object
at Function.getPrototypeOf ()
at Object. (utils.js:48)
at c ((index):1)
at Object. (URL.js:4)
at c ((index):1)
at Object. (webidl2js-wrapper.js:3)
at c ((index):1)
at Object. (index.js:3)
at c ((index):1)
at Object. (api.js:7)
The text was updated successfully, but these errors were encountered: