๋น๋๋ ๋ก์ปฌ์์ ์๋ํ์ง๋ง Netlify์์๋ ์คํจํฉ๋๋ค.
ํ๋ก์ ํธ๋ ์ฌ๊ธฐ: https://github.com/merelinguist/playhouse-press/pull/225
์ ์์ ์ผ๋ก ๊ตฌ์ถ๋๊ธฐ๋ฅผ ๊ธฐ๋ํฉ๋๋ค.
๋น๋๋ ๋ก์ปฌ์์ ์ ์๋ํ์ง๋ง Netlify์์ ์ค๋จ:
error Generating JavaScript bundles failed
Error: ./src/components/Page/index.js
Module not found: Error: Can't resolve '../Footer' in '/opt/build/repo/src/com ponents/Page'
resolve '../Footer' in '/opt/build/repo/src/components/Page'
using description file: /opt/build/repo/package.json (relative path: ./src/c omponents/Page)
Field 'browser' doesn't contain a valid alias configuration
using description file: /opt/build/repo/package.json (relative path: ./src /components/Footer)
no extension
Field 'browser' doesn't contain a valid alias configuration
/opt/build/repo/src/components/Footer doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/opt/build/repo/src/components/Footer.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/opt/build/repo/src/components/Footer.jsx doesn't exist
as directory
/opt/build/repo/src/components/Footer doesn't exist
[/opt/build/repo/src/components/Footer]
[/opt/build/repo/src/components/Footer.js]
[/opt/build/repo/src/components/Footer.jsx]
@ ./src/components/Page/index.js 8:0-31 69:29-35
@ ./src/templates/post.js
@ ./.cache/async-requires.js
@ ./.cache/production-app.js
Error: ./src/templates/post.js
Module not found: Error: Can't resolve '../components/PostView' in '/opt/build /repo/src/templates'
resolve '../components/PostView' in '/opt/build/repo/src/templates'
using description file: /opt/build/repo/package.json (relative path: ./src/t emplates)
Field 'browser' doesn't contain a valid alias configuration
using description file: /opt/build/repo/package.json (relative path: ./src /components/PostView)
no extension
Field 'browser' doesn't contain a valid alias configuration
/opt/build/repo/src/components/PostView doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/opt/build/repo/src/components/PostView.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/opt/build/repo/src/components/PostView.jsx doesn't exist
as directory
/opt/build/repo/src/components/PostView doesn't exist
[/opt/build/repo/src/components/PostView]
[/opt/build/repo/src/components/PostView.js]
[/opt/build/repo/src/components/PostView.jsx]
@ ./src/templates/post.js 5:0-46 16:26-34
@ ./.cache/async-requires.js
@ ./.cache/production-app.js
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.10.0 - ~/.nvm/versions/node/v10.10.0/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.10.0/bin/npm
Browsers:
Safari: 11.1.2
npmPackages:
gatsby: ^2.0.0-rc.25 => 2.0.0-rc.25
gatsby-plugin-react-helmet: ^3.0.0-rc.1 => 3.0.0-rc.1
gatsby-plugin-styled-components: ^3.0.0-rc.5 => 3.0.0-rc.5
gatsby-source-filesystem: ^2.0.1-rc.6 => 2.0.1-rc.6
gatsby-transformer-remark: ^2.1.1-rc.5 => 2.1.1-rc.5
ํ์ํ ๊ฒ๊ณผ ํ์ผ ์ด๋ฆ์ ๋์๋ฌธ์๊ฐ ๋ค๋ฅด๊ธฐ ๋๋ฌธ์ ๋๋ค. ์ด๊ฒ์ Mac์์ ์๋ํ๊ณ Linux์์๋ ์๋ํ์ง ์์ต๋๋ค.
๋๋ ๋ํ์ด ๊ฐ์ ๋ฌธ์ ์ ๋ํด ์ํด์ ํ๊ณ ์์์ต๋๋ค.
์ด๊ฒ์ ๋๋ฅผ ์ํด ๊ทธ๊ฒ์ ํด๊ฒฐํ์ต๋๋ค.
git config core.ignorecase false
๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํ๋ ํ์ผ ์ด๋ฆ ๋ณ๊ฒฝ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ ์ ์ด ์์ต๋๋ค.
์ฐ์ฐ์ ์ผ์น์๊ฑฐ๋ Gatsby v2 Starter์ ์ผ๋ถ์ธ๊ฐ์??
๋์ปค ์ปจํ ์ด๋๋ก ํธ์ํ๋ ๋์ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๋ฐฉ๋ฒ์ ๋ฌด์์ ๋๊น?
๋๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์๊ณ ์๋์ผ๋ก ๊ฐ์ ธ์ค๊ธฐ๋ฅผ ๋ณ๊ฒฝํ์ฌ ์์ ํ์ต๋๋ค.
์ ์:
import Features from "../components/features/features";
ํ์:
import Features from "../components/features/Features";
StackOverFlow์ talve ์ ๋ํ ํฌ๋ ๋ง
๋ฐฉ๊ธ ๊ฐ์ ์ค์์ ๋ถ๋ช์ณค์ต๋๋ค. ์ด๊ฒ์ ๊ฐ๋ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํด์ผ ํ๋ ๊ฒ ์๋๊ฐ์?
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋ ๋ํ์ด ๊ฐ์ ๋ฌธ์ ์ ๋ํด ์ํด์ ํ๊ณ ์์์ต๋๋ค.
์ด๊ฒ์ ๋๋ฅผ ์ํด ๊ทธ๊ฒ์ ํด๊ฒฐํ์ต๋๋ค.
๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํ๋ ํ์ผ ์ด๋ฆ ๋ณ๊ฒฝ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ ์ ์ด ์์ต๋๋ค.
์ฐ์ฐ์ ์ผ์น์๊ฑฐ๋ Gatsby v2 Starter์ ์ผ๋ถ์ธ๊ฐ์??