Closed trunghieu0207 closed 1 year ago
Is this issue resolved?
yes, should be solved
still not worked. I am not using create react app. I build the app using webpack. console error:- @infi-pc can you please help me to get rid from that problem It is working fine in my other project. But in one project that i build using custom webpack show that error.
still has this problem,i use webpack
Where the bug happens
your browser
Chrome/Edge
Describe the bug
I used the locatorjs with React dev tool extension and then click on the element, and the error display:
To reproduce
My custom project uses the webpack to build React. I not using React app You can reproduce the bug in the steps below:
Index.tsx
if (process.env.NODE_ENV === "development") { setupLocatorUI(); }
JSX
The flow will call the
reactAdapter.getElementInfo(target)
and it returnsnull
value then flow continues to calljsxAdapter.getElementInfo(target)
and it returns the correct valueJSX
and React dev toolThe flow will call the
reactAdapter.getElementInfo(target)
and it NOT returnsnull
value then flow cannot call tojsxAdapter.getElementInfo(target)
so the value is incorrect.[Fix]
I changed from
to
and it works normally
@infi-pc You can check it and fix it. My English skill is not good, you can ask me anytime if you find it difficult to understand. This is a very useful tool and I want to apply it to my product Thank for you making the tool!