Skip to content

Instantly share code, notes, and snippets.

@esparkman
Last active May 3, 2019 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esparkman/90fa91b1cae5ea338aa3e050f16362e5 to your computer and use it in GitHub Desktop.
Save esparkman/90fa91b1cae5ea338aa3e050f16362e5 to your computer and use it in GitHub Desktop.
netlify build error
Error: ./src/pages/index.js
12:49:02 PM: Module not found: Error: Can't resolve '../components/Layout' in '/opt/build/r epo/src/pages'
12:49:02 PM: resolve '../components/Layout' in '/opt/build/repo/src/pages'
12:49:02 PM: using description file: /opt/build/repo/package.json (relative path: ./src/p ages)
12:49:02 PM: Field 'browser' doesn't contain a valid alias configuration
12:49:02 PM: using description file: /opt/build/repo/package.json (relative path: ./src /components/Layout)
12:49:02 PM: no extension
12:49:02 PM: Field 'browser' doesn't contain a valid alias configuration
12:49:02 PM: /opt/build/repo/src/components/Layout doesn't exist
12:49:02 PM: .mjs
12:49:02 PM: Field 'browser' doesn't contain a valid alias configuration
12:49:02 PM: /opt/build/repo/src/components/Layout.mjs doesn't exist
12:49:02 PM: .js
12:49:02 PM: Field 'browser' doesn't contain a valid alias configuration
12:49:02 PM: /opt/build/repo/src/components/Layout.js doesn't exist
12:49:02 PM: .jsx
12:49:02 PM: Field 'browser' doesn't contain a valid alias configuration
12:49:02 PM: /opt/build/repo/src/components/Layout.jsx doesn't exist
12:49:02 PM: .wasm
12:49:02 PM: Field 'browser' doesn't contain a valid alias configuration
12:49:02 PM: /opt/build/repo/src/components/Layout.wasm doesn't exist
12:49:02 PM: .json
12:49:02 PM: Field 'browser' doesn't contain a valid alias configuration
12:49:02 PM: /opt/build/repo/src/components/Layout.json doesn't exist
12:49:02 PM: as directory
12:49:02 PM: /opt/build/repo/src/components/Layout doesn't exist
12:49:02 PM: [/opt/build/repo/src/components/Layout]
12:49:02 PM: [/opt/build/repo/src/components/Layout.mjs]
12:49:02 PM: [/opt/build/repo/src/components/Layout.js]
12:49:03 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
12:49:02 PM: [/opt/build/repo/src/components/Layout.jsx]
12:49:02 PM: [/opt/build/repo/src/components/Layout.wasm]
12:49:02 PM: [/opt/build/repo/src/components/Layout.json]
12:49:02 PM: @ ./src/pages/index.js 3:0-42 6:29-35
12:49:02 PM: @ ./.cache/async-requires.js
12:49:02 PM: @ ./.cache/production-app.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /Users/evansparkman/Development/evansparkman.com/node_modules/gatsby/dist/utils/babel-loader.js??ref--5-0!/Users/evansparkman/Development/evansparkman.com/node_modules/eslint-loader/index.js??ref--11-0!/Users/evansparkman/Development/evansparkman.com/src/components/Layout.js
Used by 8 module(s), i. e.
/Users/evansparkman/Development/evansparkman.com/node_modules/gatsby/dist/utils/babel-loader.js??ref--5-0!/Users/evansparkman/Development/evansparkman.com/node_modules/eslint-loader/index.js??ref--11-0!/Users/evansparkman/Development/evansparkman.com/src/templates/blog.js
* /Users/evansparkman/Development/evansparkman.com/node_modules/gatsby/dist/utils/babel-loader.js??ref--5-0!/Users/evansparkman/Development/evansparkman.com/node_modules/eslint-loader/index.js??ref--11-0!/Users/evansparkman/Development/evansparkman.com/src/components/layout.js
Used by 2 module(s), i. e.
/Users/evansparkman/Development/evansparkman.com/node_modules/gatsby/dist/utils/babel-loader.js??ref--5-0!/Users/evansparkman/Development/evansparkman.com/node_modules/eslint-loader/index.js??ref--11-0!/Users/evansparkman/Development/evansparkman.com/src/pages/about.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment