Skip to content
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

Type issues #1311

Closed
Mister-Hope opened this issue Jan 5, 2021 · 1 comment
Closed

Type issues #1311

Mister-Hope opened this issue Jan 5, 2021 · 1 comment

Comments

@Mister-Hope
Copy link

Mister-Hope commented Jan 5, 2021

Describe the bug
A clear and concise description of what the bug is.

I am metting Error in render: "TypeError: dayjs__WEBPACK_IMPORTED_MODULE_0__ is not a function" when using webpack with the latest version.

Addtional Info: Everything works fine in 1.9.8

Information

  • Day.js Version [e.g. v1.0.0] 1.10.1
  • OS: [e.g. iOS] Windows
  • Browser [e.g. chrome 62] Chrome 87
  • Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)] GMT+8
@Mister-Hope
Copy link
Author

Mister-Hope commented Jan 5, 2021

I think it is related to #1281 (comment)

For me I have to use import dayjs from 'dayjs' in the newest version instead of import * as dayjs from 'dayjs'

@iamkun Could you tell me when you plan to publish the next release? My package is requiring dayjs^1.9.8 and this issue is inflecting my package. If you are not planing to revert in the next 2 days, I will publish a version to lock it down in 1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant