detect-gpu
detect-gpu copied to clipboard
Crash in an old browser. (iPad Mini 1 Safari 9)
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
Also having this issue, please advise 🙏
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...
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.
I have the lastest Macbook pro M1 and having
Unhandled Rejection (TypeError): e is not a function

Any fix for this ? I really wanted to use this library .
@drenmullafetahu That's the same stack trace I got with create-react-app v5 (which uses webpack 5).
Solved it by moving to vite.
@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 ❤️
If I remember correctly, I just moved the project to vite instead of CRA.
I haven't had time to investigate further though.
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?
cc @jansedivy
vue@cli 5, how to solve…