Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: does not match the corresponding path on disk #57

Open
mikr13 opened this issue Feb 20, 2021 · 3 comments
Open

Error: does not match the corresponding path on disk #57

mikr13 opened this issue Feb 20, 2021 · 3 comments
Labels
question waiting Waiting for response from reporter

Comments

@mikr13
Copy link

mikr13 commented Feb 20, 2021

Hi,
I would really appreciate your help or guidance on this issue.
This plugin is being used internally by gridsome in the build process, now it runs fine on my local setup but I then did a setup of GitHub actions to deploy the website on push then this plugin started giving out this error.

Action logs:

yarn run v1.22.10
$ gridsome build
Gridsome v0.7.23

Initializing plugins...
Load sources - 0.07s
Create GraphQL schema - 0.2s
Create pages and templates - 0.1s
Generate temporary code - 0.01s
Bootstrap finish - 2.13s
Compiling assets...
Error: [CaseSensitivePathsPlugin] `D:\a\opendevs-webpage\opendevs-webpage\src\pages\portfolio\[username].vue` does not match the corresponding path on disk `Portfolio`.
    at D:\a\opendevs-webpage\opendevs-webpage\node_modules\case-sensitive-paths-webpack-plugin\index.js:153:16
    at D:\a\opendevs-webpage\opendevs-webpage\node_modules\case-sensitive-paths-webpack-plugin\index.js:113:7
    at D:\a\opendevs-webpage\opendevs-webpage\node_modules\case-sensitive-paths-webpack-plugin\index.js:101:7
    at CaseSensitivePathsPlugin.getFilenamesInDir (D:\a\opendevs-webpage\opendevs-webpage\node_modules\case-sensitive-paths-webpack-plugin\index.js:51:5)
    at CaseSensitivePathsPlugin.fileExistsWithCase (D:\a\opendevs-webpage\opendevs-webpage\node_modules\case-sensitive-paths-webpack-plugin\index.js:89:8)
    at D:\a\opendevs-webpage\opendevs-webpage\node_modules\case-sensitive-paths-webpack-plugin\index.js:106:10
    at Array.<anonymous> (D:\a\opendevs-webpage\opendevs-webpage\node_modules\case-sensitive-paths-webpack-plugin\index.js:67:5)
    at Storage.finished (D:\a\opendevs-webpage\opendevs-webpage\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at D:\a\opendevs-webpage\opendevs-webpage\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
    at D:\a\opendevs-webpage\opendevs-webpage\node_modules\enhanced-resolve\lib\NodeJsInputFileSystem.js:12:4
    at go$readdir$cb (D:\a\opendevs-webpage\opendevs-webpage\node_modules\graceful-fs\graceful-fs.js:214:14)
    at FSReqCallback.oncomplete (fs.js:171:23)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

Action file: https://github.com/open-devs/opendevs-webpage/blob/master/.github/workflows/gh-pages.yml

Please help, really can't wrap my head around this, I even used path.resolve but that didn't fix it.

@mikr13
Copy link
Author

mikr13 commented Feb 20, 2021

I also tried changing from ubuntu-latest to windows-latest in workflow

@Urthen
Copy link
Owner

Urthen commented Feb 22, 2021

As described in the error, this plugin detects case mismatches, in this case you are somewhere requesting src\pages\portfolio\[username].vue but the actual path of the folder on disk is Portfolio. This may happen if you've changed the case but git didn't properly pick it up, so the change isn't pushed to deployments. You'll have to resolve that, here's a link that may help: https://stackoverflow.com/questions/14578680/changing-case-of-folder-via-git-bash-on-windows

@Urthen Urthen added question waiting Waiting for response from reporter labels Feb 22, 2021
@mikr13
Copy link
Author

mikr13 commented Mar 9, 2021

Hi @Urthen actually I'm just copying everything from my local directory to docker container using COPY . command so I believe the directory name shouldn't mismatch the one in the local. I think it's some issue with the webpack plug-in only. I'm looking into it, I'll update as soon as I get to know something.
Thanks for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question waiting Waiting for response from reporter
Projects
None yet
Development

No branches or pull requests

2 participants