"open in editor" doesn't work on windows
anorudes opened this issue · 6 comments
Hello, lahmatiy, nice inspector, but i don't know how to resolve problem with "open in editor".
I can't see link.
Code:
<script>window.OPEN_FILE_URL = '/open-in-editor';</script>
<script src="node_modules/component-inspector/dist/react.js"></script>
<script src="dist/bundle.js"></script>
Also the message "Open file in editor` is not supported" (or other messages) don't show in the console.
Probably editor is not configured correctly.
See discussion #9 (last comments), it might help.
Yes, i saw that comment and maked change, but link doesn't work. Video: https://monosnap.com/file/SLWxhzEA1JNRKkonXLcPfz7gjLBsJ2
Ah, I see. You need setup code instrumenting, by babel plugin. See details here https://github.com/lahmatiy/component-inspector#additional-features
Thanks, it is working now. But he open empty file "index.js" :)
Is file name correct?
If yes, than problem with source path. Probably you need setup basePath in babel plugin.
If no, than I have no idea. Needs more details.
Yep! "basePath: myPath" helped me. I understand how this work now. Thanks! =)