Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DevHelper plugin panics while initializing in the browser #2760

Open
ninoDeme opened this issue Oct 31, 2024 · 0 comments · May be fixed by #2761
Open

DevHelper plugin panics while initializing in the browser #2760

ninoDeme opened this issue Oct 31, 2024 · 0 comments · May be fixed by #2761

Comments

@ninoDeme
Copy link

Describe the bug
Extending dayjs with devhelper in the browser errors with "ReferenceError: process is not defined"
The error occurs in the following line: https://github.com/iamkun/dayjs/blob/1f67767944c3ac7384c3128ddd805611e9ce8f57/src/plugin/devHelper/index.js#L4C1-L4C59

Expected behavior
devhelper properly detects that process doesn't exists and initializaes in the browser

Information

  • Day.js Version 1.11.13
  • OS: Ubuntu 24.10
  • Browser Firefox 131 and Chrome 125.0.6422.60
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant