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

Could not find module dayjs/locale/ja #1206

Closed
guganabu opened this issue Nov 11, 2020 · 4 comments
Closed

Could not find module dayjs/locale/ja #1206

guganabu opened this issue Nov 11, 2020 · 4 comments

Comments

@guganabu
Copy link

Describe the bug
While try to import the locale in browser, it throws an error like could not find module. Same happen while try to import duration plugin. But, it works with some other plugins like localeData.

Expected behavior
Should be able to import modules whichever exposed under plugin/locale.

Information

  • Day.js Version 1.9.6
  • Browser chrome: 86.0.4240.183
@iamkun
Copy link
Owner

iamkun commented Nov 12, 2020

Hi, you can check more detail here:
https://day.js.org/docs/en/installation/browser

@guganabu
Copy link
Author

guganabu commented Nov 12, 2020

Assuming npm install dayjs will install the required dependencies so, importing the locale will also works. But, not in my case.

@guganabu
Copy link
Author

Using day.js as dependency for other package got issue. Resolved while configuring independently, thanks!

@ravighale
Copy link

Using day.js as dependency for other package got issue. Resolved while configuring independently, thanks!

can you tell me how you did it exactly?

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