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

Cannot find module 'dayjs/plugin/localeData' (v1.9.2) #1135

Closed
ntzyz opened this issue Oct 13, 2020 · 2 comments
Closed

Cannot find module 'dayjs/plugin/localeData' (v1.9.2) #1135

ntzyz opened this issue Oct 13, 2020 · 2 comments

Comments

@ntzyz
Copy link

ntzyz commented Oct 13, 2020

Describe the bug

The following code just crash:

const dayjs = require('dayjs')
dayjs.extend(require('dayjs/plugin/localeData'))

Error:

internal/modules/cjs/loader.js:896
  throw err;
  ^

Error: Cannot find module 'dayjs/plugin/localeData'
Require stack:
- internal/preload
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:893:15)
    at Function.Module._load (internal/modules/cjs/loader.js:743:27)
    at Module.require (internal/modules/cjs/loader.js:965:19)
    at Module._preloadModules (internal/modules/cjs/loader.js:1222:12)
    at loadPreloadModules (internal/bootstrap/pre_execution.js:446:5)
    at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:74:3)
    at internal/main/repl.js:19:1 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
}

Expected behavior
No error should happen

Information

  • Day.js Version [e.g. v1.9.2]
  • OS: [e.g. macOS]
  • Browser [e.g. nodejs v14]
@iamkun
Copy link
Owner

iamkun commented Oct 13, 2020

same bug #1132, will fix soon

@iamkun iamkun closed this as completed Oct 13, 2020
@iamkun
Copy link
Owner

iamkun commented Oct 13, 2020

v1.9.3 has fixed this bug. Sorry for the inconvenience.

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