Module not found: Error: Can't resolve in view

hardcore-wescoff-ca804a

Hi! I keep receiving the below message after I try to deploy. My build command is npm run build. It works locally. It looks like there’s a folder naming issue here, but I still can’t seem to figure it out. Thank you!

11:30:02 AM: ERROR in ./src/js/index.js
11:30:02 AM: Module not found: Error: Can’t resolve ‘…/js/views/Likesview’ in ‘/opt/build/repo/src/js’
@ ./src/js/index.js 8:0-51 100:6-29 103:6-26 110:6-29 112:6-26 114:3-27 122:3-27 125:37-57
11:30:02 AM: @ multi babel-polyfill ./src/js/index.js
11:30:02 AM: ERROR in ./src/js/index.js
11:30:02 AM: Module not found: Error: Can’t resolve ‘./views/base’ in ‘/opt/build/repo/src/js’
@ ./src/js/index.js 3:0-67 31:6-18 31:19-27 38:9-20 42:9-20 47:0-8 52:0-8 128:0-8
11:30:02 AM: @ multi babel-polyfill ./src/js/index.js
11:30:02 AM: ERROR in ./src/js/index.js
11:30:02 AM: Module not found: Error: Can’t resolve ‘./views/jobView’ in ‘/opt/build/repo/src/js’
@ ./src/js/index.js 5:0-43 69:6-22 80:9-26
11:30:02 AM: @ multi babel-polyfill ./src/js/index.js
11:30:02 AM: ERROR in ./src/js/index.js
11:30:02 AM: Module not found: Error: Can’t resolve ‘./views/searchView’ in ‘/opt/build/repo/src/js’
@ ./src/js/index.js 4:0-49 22:17-36 29:6-27 30:6-29 39:9-33 56:6-29 57:6-30
11:30:02 AM: @ multi babel-polyfill ./src/js/index.js
11:30:02 AM: Child HtmlWebpackCompiler:

Hey there, thanks for reaching out.

What you are describing sounds a bit like a an issue with case sensitivity on our system.

Can you give this a read through and let us know if that fixes the issue?

I solved it through your suggestion. The problem had to do with case-sensitivity.

Thank you!

1 Like

a very common culprit! glad its working now.