iamkun / iamkun/dayjs

Errors when updating. Webpack related

Open
#792 12 comments 13 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I haven't had this error until I updated. What loader do I use with dayjs now?

WARNING in ./node_modules/dayjs/locale/types.d.ts 1:8
Module parse failed: Unexpected token (1:8)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> declare interface ILocale {
| name: string
| weekdays?: string[]
@ ./node_modules/dayjs/locale lazy ^\.\/.*$ namespace object ./types.d.ts
@ ./src/index.js

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.