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
runtime error: Cannot use 'in' operator to search for 'transform' in undefined at getPrefix #574
Comments
Oh that's quite interesting. Which browser? Can you replicate this on a page? It's odd that |
That error is triggered when I run my project using npm run in the terminal... using chrome browser for additional info. Thx |
If you're running it in the terminal that doesn't mean you're running it in Chrome. Are you loading up something like JSDOM to emulate a global |
Made a search for JSDOM, resulted to nothing. My package.json is "engines": { Could be one of the packages is the cause of the issue... |
I'm sorry, without really knowing what you're doing, I can't get to the bottom of it outright or help you debug it. I would suggest sticking a breakpoint in that code, or you could submit a PR to check if |
Sure, I understand. Will do that. Thanks 👍 |
OK made some digging. So I think this error is triggering because I am returning my first page from ReactDOMServer... Putting a breakpoint in that code showed that there was no style child under documentElement. var style = window.document.documentElement.style; What I have under documentElement is appendChild function only. Maybe that could happen for other users. Would be good to check if style is not undefined before the L23? |
So ReactDomServer is returning the file to the browser, that's why the So I am guessing that should be a package that removing that 'style' element under documentElement. |
Will do a PR to fix this. |
using "react-draggable": "^4.4.3", "react": "16.13.1",
Use in in one of my components as:
The text was updated successfully, but these errors were encountered: