-
Notifications
You must be signed in to change notification settings - Fork 145
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
Uncaught (in promise) ReferenceError: require is not defined #45
Comments
I got this also. I think it is due to dayjs in production build uses require(cjs) instead of import(mjs). @onesine help us solve this issue |
@srini-leanfolks I moved the package out of node modules and fixed this part for myself. in index.esm.js you can replace require to and i commented switch case (on line 150) Waiting for when will be fixed this part. :) |
@srini-leanfolks how it gets updated in npmjs.com ? |
Sorry I didn't get you |
Fix in Closing this issue |
@JefteCaro I'm still getting the same error in production builds. Using version 1.4.1. (dayjs v1.11.6) Edit: I get it when the code hits the loadLanguageModule function, rather than the isBetween function. |
@gelmio facing the same issue with loadLanguageModule. |
Getting issue in console on production(npm run build).
![image](https://user-images.githubusercontent.com/25978306/212852706-0c65bbb1-93ca-4058-9154-af2a45b29fdc.png)
The text was updated successfully, but these errors were encountered: