Winston: ν˜Έν™˜λ˜μ§€ μ•ŠλŠ” 문제: λ…Έλ“œ 14 μ§€μ›λ˜μ§€ μ•ŠλŠ” κ²½κ³ 

에 λ§Œλ“  2020λ…„ 05μ›” 14일  Β·  3μ½”λ©˜νŠΈ  Β·  좜처: winstonjs/winston

κ·€ν•˜μ˜ ν™˜κ²½μ— λŒ€ν•΄ μ•Œλ €μ£Όμ‹­μ‹œμ˜€.

  • _ winston 버전?_

    • [ ] winston@3

    • [x] winston@2

  • _ node -v 좜λ ₯:_
> node -v
v14.2.0
  • _운영 체제?_(Windows, macOS λ˜λŠ” Linux) Ubuntu 18.04(wsl 1)
  • _μ–Έμ–΄?_ (전체 | TypeScript XX | ES6/7 | ES5 | Dart) λͺ¨λ‘

λ¬Έμ œκ°€ λ¬΄μ—‡μž…λ‹ˆκΉŒ?

ν”„λ‘œκ·Έλž¨μ„ μ‹œμž‘ν•˜λŠ” λ™μ•ˆ κ²½κ³ κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€.
λ‚˜. node --trace-warnings core.js
ii. 타격을 보여

(node:26972) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Object.exports.setLevels (/mnt/d/Programs/Hitokoto_Api/node_modules/winston/lib/winston/common.js:35:14)
    at Object.<anonymous> (/mnt/d/Programs/Hitokoto_Api/node_modules/winston/lib/winston.js:83:8)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at require (internal/modules/cjs/helpers.js:72:18)

κ·Έ λŒ€μ‹  μ–΄λ–€ 일이 μΌμ–΄λ‚˜κΈ°λ₯Ό κΈ°λŒ€ν•˜μ‹­λ‹ˆκΉŒ?


κ²½κ³  없이

기타 정보

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

https://github.com/winstonjs/winston/pull/1800 을 톡해 μˆ˜μ •λ˜μ—ˆμœΌλ©° 2.4.5 λ¦΄λ¦¬μŠ€λŠ” 곧 μ€‘λ‹¨λ©λ‹ˆλ‹€. 감사 ν•΄μš”. μ΅œμ‹  λ…Έλ“œ 버전에 λŒ€ν•΄ μœ μ§€ 관리 및 ν…ŒμŠ€νŠΈλ˜λŠ” winston 3으둜 μ—…κ·Έλ ˆμ΄λ“œν•˜λŠ” 것을 κ³ λ €ν•˜μ‹­μ‹œμ˜€.

λͺ¨λ“  3 λŒ“κΈ€

곧 μˆ˜μ •/λ³‘ν•©λ˜μ§€ μ•Šμ„ 것 κ°™κ³  μ‹€μ œλ‘œ winston@3 으둜 λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ν•˜κ³  싢지 μ•ŠκΈ° λ•Œλ¬Έμ— λΆ„κΈ°λœ npm νŒ¨ν‚€μ§€( https://www.npmjs.com/package/winston24)λ₯Ό λ§Œλ“€μ—ˆμŠ΅λ‹ˆλ‹€. 이것은 이 경고에 λŒ€ν•œ μˆ˜μ • 사항이 적용된 [email protected] 이며 버전 2.4.5둜 μΆ©λŒν–ˆμŠ΅λ‹ˆλ‹€. 이 λΆ„κΈ°μ—μ„œ κ²Œμ‹œ: https://github.com/rysenko/winston/commits/2.x

https://github.com/winstonjs/winston/pull/1800 을 톡해 μˆ˜μ •λ˜μ—ˆμœΌλ©° 2.4.5 λ¦΄λ¦¬μŠ€λŠ” 곧 μ€‘λ‹¨λ©λ‹ˆλ‹€. 감사 ν•΄μš”. μ΅œμ‹  λ…Έλ“œ 버전에 λŒ€ν•΄ μœ μ§€ 관리 및 ν…ŒμŠ€νŠΈλ˜λŠ” winston 3으둜 μ—…κ·Έλ ˆμ΄λ“œν•˜λŠ” 것을 κ³ λ €ν•˜μ‹­μ‹œμ˜€.

λ‚˜λŠ” μ—¬μ „νžˆμ΄ λ¬Έμ œμ— μ§λ©΄ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. λ‚΄ λ…Έλ“œ λͺ¨λ“ˆμ—μ„œ @2.4.5둜 μ—…λ°μ΄νŠΈν•˜κ³  λ‹€μ‹œ μ„€μΉ˜ν–ˆμ§€λ§Œ μ—¬μ „νžˆ μΆ©λŒν•˜μ§€λ§Œ μ΄λ²ˆμ—λŠ” κ²½κ³ κ°€ ν‘œμ‹œλ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰