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

Not working in the docker environment #3

Open
kd21 opened this issue Sep 12, 2022 · 5 comments
Open

Not working in the docker environment #3

kd21 opened this issue Sep 12, 2022 · 5 comments

Comments

@kd21
Copy link

kd21 commented Sep 12, 2022

docker環境下でも使えるようになると嬉しいです。ご検討よろしくおねがいします!

具体的には以下のような状態です。
dockerfileで、以下のような感じの設定をしています。

FROM node
WORKDIR /usr/src/app
# .../usr/src/app以下にファイルをコピーする処理等

docker内では各componentが/usr/src/app以下に存在するためか、拡張機能により生成されるファイルのパスがlocal環境と食い違ってしまうため、「パスが存在しません」と表示されてしまう状況です 🙏

@hand-dot
Copy link
Owner

@kd21
なるほど。react-inspectorの動きとしては正しいのでこちらで修正を入れるべきか悩ましいです。

オプションページにて指定したfile pathを指定したfile pathへ書き換える処理を入れれば対応可能かもしれません。が、
React fiberに埋め込まれるソースコードの情報はビルド時の場所に依存するので開発サーバーをローカルで立ち上げればいいのかなと思ったり。

@kd21
Copy link
Author

kd21 commented Sep 14, 2022

@hand-dot
なるほどです。回答ありがとうございます!

ローカルで立ち上げれば確かに動くなあと思いつつ、現状の開発環境に特に手を入れずに使えたらうれしいなあと思った次第です。

ただ、現状のreact-inspectorの提供したい機能の範囲外であればclose頂いてもちろん大丈夫です!

@hand-dot
Copy link
Owner

@kd21
ご理解いただきありがとうございます...!
オプションを増やすのは他の不具合が発生する可能性があるので少し考えさせてください。
同じようなユーザーが現れる可能性があるのでこのissueは閉じずにしばらく待ちます。


I appreciate your understanding...!
Please let me think about adding more options as it may cause other problems.
I will wait for a while without closing this issue because there is a possibility that similar users will appear.

@hand-dot hand-dot changed the title docker環境でも使えるとうれしい Not working in the docker environment Sep 15, 2022
@hand-dot
Copy link
Owner

If you want to run it in a docker environment, please react to this issue.

@vxcall
Copy link

vxcall commented Jan 26, 2024

自分用なのでめちゃ適当ですが、こちらpath置換できるようにしたforkです
https://github.com/pseuxide/react-inspector

This is my fork for docker users. It's messy af yet in case anyone desperately need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants