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

TypeError: dayjs__WEBPACK_IMPORTED_MODULE_22__ is not a function #1312

Closed
yyq78 opened this issue Jan 5, 2021 · 1 comment
Closed

TypeError: dayjs__WEBPACK_IMPORTED_MODULE_22__ is not a function #1312

yyq78 opened this issue Jan 5, 2021 · 1 comment

Comments

@yyq78
Copy link

yyq78 commented Jan 5, 2021

Describe the bug
Hey, first I want to say thank you for an awesome lightweight package.

I've recently updated my dayjs packages in my Typescript project and have started to get the following error in browser

TypeError: dayjs__WEBPACK_IMPORTED_MODULE_22__ is not a function
Here is what I have in my code base

import * as dayjs from 'dayjs'
const today = dayjs();

Not sure why this is happening, I've checked around and based on current findings I do have the appropriate configurations. Thanks ahead of time for your support.

"allowSyntheticDefaultImports": true,

Information

Day.js Version 1.10.1
Typescript Version 3.0.0

@iamkun
Copy link
Owner

iamkun commented Jan 5, 2021

maybe related to #1281

@yyq78 yyq78 closed this as completed Jan 5, 2021
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

2 participants