{"action":"created","issue":{"url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/121","repository_url":"https://api.github.com/repos/gabrielbull/react-desktop","labels_url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/121/comments","events_url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/121/events","html_url":"https://github.com/gabrielbull/react-desktop/issues/121","id":311766724,"number":121,"title":"Does not match corresponding path with next.js","user":{"login":"YudiTan","id":25580747,"avatar_url":"https://avatars1.githubusercontent.com/u/25580747?v=4","gravatar_id":"","url":"https://api.github.com/users/YudiTan","html_url":"https://github.com/YudiTan","followers_url":"https://api.github.com/users/YudiTan/followers","following_url":"https://api.github.com/users/YudiTan/following{/other_user}","gists_url":"https://api.github.com/users/YudiTan/gists{/gist_id}","starred_url":"https://api.github.com/users/YudiTan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YudiTan/subscriptions","organizations_url":"https://api.github.com/users/YudiTan/orgs","repos_url":"https://api.github.com/users/YudiTan/repos","events_url":"https://api.github.com/users/YudiTan/events{/privacy}","received_events_url":"https://api.github.com/users/YudiTan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-05T20:58:17Z","updated_at":"2018-04-06T04:07:23Z","closed_at":null,"author_association":"NONE","body":"I installed react-desktop via npm and then copied one of the code-blocks to test it out in my next.js application but I came across this error: \r\n\r\nError in react-desktop/macOs\r\nModule not found: Error: [CaseSensitivePathsPlugin] `/Users/yuditan/projects/personal_website/node_modules/react-desktop/src/Box/macOs/index.js` does not match the corresponding path on disk `box`.\r\nModuleNotFoundError: Module not found: Error: [CaseSensitivePathsPlugin] `/Users/yuditan/projects/personal_website/node_modules/react-desktop/src/Box/macOs/index.js` does not match the corresponding path on disk `box`.\r\n    at factoryCallback (/Users/yuditan/projects/personal_website/node_modules/webpack/lib/Compilation.js:276:40)\r\n    at factory (/Users/yuditan/projects/personal_website/node_modules/webpack/lib/NormalModuleFactory.js:235:20)\r\n    at applyPluginsAsyncWaterfall (/Users/yuditan/projects/personal_website/node_modules/webpack/lib/NormalModuleFactory.js:70:21)\r\n    at /Users/yuditan/projects/personal_website/node_modules/tapable/lib/Tapable.js:265:18\r\n    at that.fileExistsWithCase (/Users/yuditan/projects/personal_website/node_modules/next/node_modules/case-sensitive-paths-webpack-plugin/index.js:156:15)\r\n    at that.fileExistsWithCase (/Users/yuditan/projects/personal_website/node_modules/next/node_modules/case-sensitive-paths-webpack-plugin/index.js:109:7)\r\n    at that.fileExistsWithCase (/Users/yuditan/projects/personal_website/node_modules/next/node_modules/case-sensitive-paths-webpack-plugin/index.js:109:7)\r\n    at that.getFilenamesInDir (/Users/yuditan/projects/personal_website/node_modules/next/node_modules/case-sensitive-paths-webpack-plugin/index.js:97:7)\r\n    at fs.readdir (/Users/yuditan/projects/personal_website/node_modules/next/node_modules/case-sensitive-paths-webpack-plugin/index.js:63:5)\r\n    at /Users/yuditan/projects/personal_website/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:70:14\r\n    at _combinedTickCallback (internal/process/next_tick.js:95:7)\r\n    at process._tickCallback (internal/process/next_tick.js:161:9)"},"comment":{"url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/comments/379142635","html_url":"https://github.com/gabrielbull/react-desktop/issues/121#issuecomment-379142635","issue_url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/121","id":379142635,"user":{"login":"YudiTan","id":25580747,"avatar_url":"https://avatars1.githubusercontent.com/u/25580747?v=4","gravatar_id":"","url":"https://api.github.com/users/YudiTan","html_url":"https://github.com/YudiTan","followers_url":"https://api.github.com/users/YudiTan/followers","following_url":"https://api.github.com/users/YudiTan/following{/other_user}","gists_url":"https://api.github.com/users/YudiTan/gists{/gist_id}","starred_url":"https://api.github.com/users/YudiTan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YudiTan/subscriptions","organizations_url":"https://api.github.com/users/YudiTan/orgs","repos_url":"https://api.github.com/users/YudiTan/repos","events_url":"https://api.github.com/users/YudiTan/events{/privacy}","received_events_url":"https://api.github.com/users/YudiTan/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T04:07:23Z","updated_at":"2018-04-06T04:07:23Z","author_association":"NONE","body":"Yup! It exists. These are the steps to recreate this error: \r\n1) Start a new empty npm project with npm init, then \"npm install --save react react-dom next react-desktop\" \r\n2) Since i'm using next.js, i created a \"pages\" folder and have an \"index.js\" in that folder for the main \"/\" route. Then, I copied the example code from http://reactdesktop.js.org/docs/mac-os/window and this error is shown. I can probably try with create-react-app and see if the same error exists, but it may be a compatability issue with next.js?"}}
{"actor":{"display_login":"YudiTan"}}