Open imoark opened 4 years ago
sme uses open for opening files.
I see. I guess open doesn't support WSL 1 very well.
Then, my workaround for now:
$ source-map-explorer build/static/js/*.js --html ./some-file-name.html
and manually open the some-file-name.html- Or use MINGW64 terminal on Windows
If anyone can have a better solution, kindly leave a comment below.
According to their readme, it supports WSL paths under /mnt/*
(i.e. files being on the windows filesystem). But here, the file is on the linux filesystem, and so is affected by https://github.com/sindresorhus/open/issues/174
Description I'm working on create-react-app@3.0.1 and I got this error.
Steps to reproduce
npm run build
$ source-map-explorer build/static/js/*.js
Expected behavior It should open the web browser and show the visualization.
Environment
Additional context I can still see the
/tmp/sme-result-2020113-220-1f3lsmg.3b1gf.html
generated. I can still also put--html
params and it will generate the file alright. I'm just wondering how to get the proper/expected behaviour if I am using WSL.Couldn't test with
source-map-explorer@2.2.2
because it's too slow.I tried with
source-map-explorer@2.0.1