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

TS depencey in dayjs suddenly causes errors #852

Closed
developdeez opened this issue Mar 28, 2020 · 3 comments
Closed

TS depencey in dayjs suddenly causes errors #852

developdeez opened this issue Mar 28, 2020 · 3 comments

Comments

@developdeez
Copy link

Hi I use dayjs and webpack.
I've recently upgraded to ^1.8.19 and have notcied the error below. I tried adding a module for typescript in my webpack but still get this error.
What do I do?

["./node_modules/dayjs/locale/index.d.ts 3:8\nModule parse failed: Unexpected token (3:8)\nYou 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\n| /// <reference path="./types.d.ts" />\n| \n> declare module 'dayjs/locale/*' {\n| namespace locale {\n| interface Locale extends ILocale {}"]

@iamkun
Copy link
Owner

iamkun commented Mar 29, 2020

A reproduction repo, please.

@RithwikAnand
Copy link

Duplicate of #792

@iamkun
Copy link
Owner

iamkun commented May 29, 2020

Duplicate

@iamkun iamkun closed this as completed May 29, 2020
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

3 participants