{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/webpack-encore/issues/227","repository_url":"https://api.github.com/repos/symfony/webpack-encore","labels_url":"https://api.github.com/repos/symfony/webpack-encore/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/symfony/webpack-encore/issues/227/comments","events_url":"https://api.github.com/repos/symfony/webpack-encore/issues/227/events","html_url":"https://github.com/symfony/webpack-encore/issues/227","id":284078197,"number":227,"title":"Different case for \"Dependency not found\"","user":{"login":"Sydney-o9","id":1480617,"avatar_url":"https://avatars2.githubusercontent.com/u/1480617?v=4","gravatar_id":"","url":"https://api.github.com/users/Sydney-o9","html_url":"https://github.com/Sydney-o9","followers_url":"https://api.github.com/users/Sydney-o9/followers","following_url":"https://api.github.com/users/Sydney-o9/following{/other_user}","gists_url":"https://api.github.com/users/Sydney-o9/gists{/gist_id}","starred_url":"https://api.github.com/users/Sydney-o9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sydney-o9/subscriptions","organizations_url":"https://api.github.com/users/Sydney-o9/orgs","repos_url":"https://api.github.com/users/Sydney-o9/repos","events_url":"https://api.github.com/users/Sydney-o9/events{/privacy}","received_events_url":"https://api.github.com/users/Sydney-o9/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-22T05:51:58Z","updated_at":"2017-12-22T06:03:30Z","closed_at":"2017-12-22T06:03:30Z","author_association":"NONE","body":"From [Symfony Encore - FAQ](http://symfony.com/doc/3.3/frontend/encore/faq.html#this-dependency-was-not-found-some-module-in-path-to-file-js).\r\n\r\n> This dependency was not found: some-module in ./path/to/file.js\r\n> Typically, a package will \"advertise\" its \"main\" file by adding a main key to its package.json. \r\n> But sometimes, old libraries won't have this.\r\n\r\nI seem to have a different scenario than the one above. \r\n\r\n![image](https://user-images.githubusercontent.com/1480617/34286938-01febcf8-e738-11e7-8c34-debe9827a9fe.png)\r\n\r\n---\r\nTo reproduce this, you may simply use the [pace-js](https://www.npmjs.com/package/pace-js) library which is only a single js file [`pace-js/pace.js`](https://github.com/HubSpot/pace/blob/master/pace.js).\r\n\r\n<kbd>1</kbd> add `pace-js` using yarn\r\n\r\n```\r\n$ yarn add --dev pace-js\r\n```\r\n<kbd>2</kbd> Add `pace-js` to `webpack.config.js`\r\n\r\n```\r\nEncore\r\n// ...\r\n    .addEntry('whatever', 'pace-js')\r\n```\r\n\r\nNote: I also tried to include pace-js in a js file directly. Same error.\r\n```\r\nrequire('pace-js/pace.js');\r\n```\r\n\r\n<kbd>3</kbd> Compile assets\r\n\r\n```bash\r\n $ ./node_modules/.bin/encore dev\r\nRunning webpack ...\r\n\r\n ERROR  Failed to compile with 1 errors                                          15:53:54\r\n\r\nThis dependency was not found:\r\n\r\n* pace in ./node_modules/pace-js/pace.js\r\n\r\nTo install it, you can run: npm install --save pace\r\n```\r\n\r\n---\r\n\r\nIt seems webpack via Encore is asking for a library `pace` which has nothing to do with this package at all.\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/webpack-encore/issues/comments/353528885","html_url":"https://github.com/symfony/webpack-encore/issues/227#issuecomment-353528885","issue_url":"https://api.github.com/repos/symfony/webpack-encore/issues/227","id":353528885,"user":{"login":"Sydney-o9","id":1480617,"avatar_url":"https://avatars2.githubusercontent.com/u/1480617?v=4","gravatar_id":"","url":"https://api.github.com/users/Sydney-o9","html_url":"https://github.com/Sydney-o9","followers_url":"https://api.github.com/users/Sydney-o9/followers","following_url":"https://api.github.com/users/Sydney-o9/following{/other_user}","gists_url":"https://api.github.com/users/Sydney-o9/gists{/gist_id}","starred_url":"https://api.github.com/users/Sydney-o9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sydney-o9/subscriptions","organizations_url":"https://api.github.com/users/Sydney-o9/orgs","repos_url":"https://api.github.com/users/Sydney-o9/repos","events_url":"https://api.github.com/users/Sydney-o9/events{/privacy}","received_events_url":"https://api.github.com/users/Sydney-o9/received_events","type":"User","site_admin":false},"created_at":"2017-12-22T06:03:30Z","updated_at":"2017-12-22T06:03:30Z","author_association":"NONE","body":"Nothing to do with Symfony webpack-encore! \r\n\r\nhttps://github.com/HubSpot/pace/issues/328#issuecomment-246210165"}}
{"actor":{"display_login":"Sydney-o9"}}