μ˜€λžœλ§Œμ— λΉŒλ“œ 슀크립트λ₯Ό μ‹€ν–‰ν•˜λ‹ˆ, μ•„λž˜μ™€ 같이 였λ₯˜μ™€ ν•¨κ»˜ μ‹€νŒ¨ν•©λ‹ˆλ‹€.

$ npm run build

> sample-next-i18next@1.2.1 build
> next build

info  - Linting and checking validity of types
info  - Creating an optimized production build
Failed to compile.

./src/components/common/RouteIndicator/RouteIndicator.module.css
TypeError: Cannot read properties of undefined (reading '700')
    at module.exports [as typography] (/Users/helloworld/Repos/sample-next-i18next/node_modules/@tailwindcss/typography/src/styles.js:16:65)

Error: Cannot read properties of undefined (reading β€˜700’)

검색을 ν•˜λ‹€ λ³΄λ‹ˆ, κ΄€λ ¨ 이슈λ₯Ό λ°œκ²¬ν–ˆμŠ΅λ‹ˆλ‹€.

tailwindlabs/tailwindcss-typography: Cannot read property β€˜700’ of undefinedΒ #214

2021-10-21 κΈ€μž„μ„ ν™•μΈν•˜κ³  κΉœμ§λ†€λž¬μŠ΅λ‹ˆλ‹€. κ·Έλ™μ•ˆ λ„ˆλ¬΄ 신경을 λͺ»μ“΄κ²ƒ κ°™μŠ΅λ‹ˆλ‹€.

@tailwindcss/typography νŒ¨ν‚€μ§€μ˜ μ΅œμ‹  버전을 μ„€μΉ˜ν•΄μ„œ 해결이 κ°€λŠ₯ν•˜λ‹€κ³  ν•˜μ—¬, κ΄€λ ¨ νŒ¨ν‚€μ§€λ“€μ„ μ—…κ·Έλ ˆμ΄λ“œν–ˆμŠ΅λ‹ˆλ‹€.

npm install @tailwindcss/typography@latest

$ npm install @tailwindcss/typography@latest

이 ν›„ tailwindcss, next-i18n κ΄€λ ¨ 변경을 λ°˜μ˜ν•œ ν›„ λΉŒλ“œ μŠ€ν¬λ¦½νŠΈκ°€ μ •μƒμ μœΌλ‘œ μ‹€ν–‰λ˜λŠ” 것을 ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€.

$ npm run build

> sample-next-i18next@1.2.1 build
> next build

info  - Linting and checking validity of types
info  - Creating an optimized production build
info  - Compiled successfully
info  - Collecting page data
info  - Generating static pages (14/14)
info  - Finalizing page optimization

Route (pages)                              Size     First Load JS
β”Œ ● /                                      1.48 kB         102 kB
β”œ   /_app                                  0 B            97.3 kB
β”œ β—‹ /404                                   193 B          97.5 kB
β”” ● /about                                 1.48 kB         102 kB
+ First Load JS shared by all              99.6 kB
  β”œ chunks/framework-7dc8a65f4a0cda33.js   45.3 kB
  β”œ chunks/main-9f2823b223abd7dd.js        32.7 kB
  β”œ chunks/pages/_app-1c32e923e1d3c53d.js  18.5 kB
  β”œ chunks/webpack-69bfa6990bb9e155.js     775 B
  β”” css/104acd707b7e6ae7.css               2.3 kB

β—‹  (Static)  automatically rendered as static HTML (uses no initial props)
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)