detect-gpu icon indicating copy to clipboard operation
detect-gpu copied to clipboard

Crash in an old browser. (iPad Mini 1 Safari 9)

Open hmmhmmhm opened this issue 3 years ago • 10 comments

The result of this module seems to be the ES6+.

After using this module, I confirmed that it was inaccessible from a device using an old browser. An error occurs because the old browser does not recognize the const keyword.

I tried to convert the module to ES5 arbitrarily, but the following error occurs as the result value of next-transpile-modules + babel. TypeError: I is not a function

hmmhmmhm avatar Dec 27 '21 07:12 hmmhmmhm

Also having this issue, please advise 🙏

div-cowboy avatar Jan 14 '22 04:01 div-cowboy

I'm not a developer, but I believe this device is quite outdated. It has specs similar to iPad 2 and surely won't render anything more complex than a bunch of simple textured cubes or so...

alexkowel avatar Jan 29 '22 10:01 alexkowel

I believe I'm also having this issue on production builds created by create-react-app.

This does not happen in development mode.

I set up a small repro repo here: https://github.com/kouak/detect-gpu-repro

This was reproduced using Chrome 97 and Firefox 96 on linux.

kouak avatar Feb 02 '22 16:02 kouak

I have the lastest Macbook pro M1 and having

Unhandled Rejection (TypeError): e is not a function Screenshot 2022-02-03 at 8 36 12 PM

Any fix for this ? I really wanted to use this library .

drenmullafetahu avatar Feb 03 '22 19:02 drenmullafetahu

@drenmullafetahu That's the same stack trace I got with create-react-app v5 (which uses webpack 5).

Solved it by moving to vite.

kouak avatar Feb 04 '22 09:02 kouak

@drenmullafetahu That's the same stack trace I got with create-react-app v5 (which uses webpack 5).

Solved it by moving to vite.

@kouak Can you explain what exactly you did (with some code) to solve this issue or even better open a PR and add a link to this PR in a comment of this issue? We're facing the same issue as #89 which seems to be the same as this one. Many people are currently encountering it and any tips / code would be very helpful ❤️

eric-taix avatar Jul 06 '22 12:07 eric-taix

If I remember correctly, I just moved the project to vite instead of CRA.

I haven't had time to investigate further though.

kouak avatar Jul 06 '22 13:07 kouak

We just published a fix for https://github.com/pmndrs/detect-gpu/issues/89 with #94, which indicated an issue with this project's build step.

Does anyone have a quick reproduction to clear #96?

CodyJasonBennett avatar Jul 17 '22 16:07 CodyJasonBennett

cc @jansedivy

paulrehkugler avatar Jul 21 '22 21:07 paulrehkugler

image vue@cli 5, how to solve…

xiaoxiao5 avatar Apr 19 '23 03:04 xiaoxiao5