{"action":"created","issue":{"url":"https://api.github.com/repos/jcbvm/require-i18next/issues/14","labels_url":"https://api.github.com/repos/jcbvm/require-i18next/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/jcbvm/require-i18next/issues/14/comments","events_url":"https://api.github.com/repos/jcbvm/require-i18next/issues/14/events","html_url":"https://github.com/jcbvm/require-i18next/issues/14","id":101794824,"number":14,"title":"Can't get optimizer to work","user":{"login":"sudsy","id":1631623,"avatar_url":"https://avatars.githubusercontent.com/u/1631623?v=3","gravatar_id":"","url":"https://api.github.com/users/sudsy","html_url":"https://github.com/sudsy","followers_url":"https://api.github.com/users/sudsy/followers","following_url":"https://api.github.com/users/sudsy/following{/other_user}","gists_url":"https://api.github.com/users/sudsy/gists{/gist_id}","starred_url":"https://api.github.com/users/sudsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudsy/subscriptions","organizations_url":"https://api.github.com/users/sudsy/orgs","repos_url":"https://api.github.com/users/sudsy/repos","events_url":"https://api.github.com/users/sudsy/events{/privacy}","received_events_url":"https://api.github.com/users/sudsy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-19T02:45:36Z","updated_at":"2015-08-20T17:32:26Z","closed_at":null,"body":"Hi There,\r\n\r\nI have the require-i18next plugin working without the optimizer, but when I try to optimize it tries to load a library called i18n at the root of my project and I receive the following errors.\r\n\r\n```\r\nGET http://localhost:8000/i18n.js req.load @ scripts.js?rev=1439951740950:11x.load @ scripts.js?rev=1439951740950:11y.load @ scripts.js?rev=1439951740950:11y.fetch @ scripts.js?rev=1439951740950:11y.check @ scripts.js?rev=1439951740950:11y.enable @ scripts.js?rev=1439951740950:11x.enable @ scripts.js?rev=1439951740950:11y.callPlugin @ scripts.js?rev=1439951740950:11y.fetch @ scripts.js?rev=1439951740950:11y.check @ scripts.js?rev=1439951740950:11y.enable @ scripts.js?rev=1439951740950:11x.enable @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11each @ scripts.js?rev=1439951740950:11y.enable @ scripts.js?rev=1439951740950:11x.enable @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11each @ scripts.js?rev=1439951740950:11y.enable @ scripts.js?rev=1439951740950:11x.enable @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11each @ scripts.js?rev=1439951740950:11y.enable @ scripts.js?rev=1439951740950:11x.enable @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11each @ scripts.js?rev=1439951740950:11y.enable @ scripts.js?rev=1439951740950:11x.enable @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11each @ scripts.js?rev=1439951740950:11y.enable @ scripts.js?rev=1439951740950:11y.init @ scripts.js?rev=1439951740950:11(anonymous function) @ scripts.js?rev=1439951740950:11\r\nscripts.js?rev=1439951740950:11 Uncaught Error: Script error for: i18n\r\nhttp://requirejs.org/docs/errors.html#scripterrormakeError @ scripts.js?rev=1439951740950:11x.onScriptError @ scripts.js?rev=1439951740950:11\r\n```\r\n\r\nI don't want to inline my resources to I haven't made any changes to my build settings for the optimizer. Do I need to make changes?"},"comment":{"url":"https://api.github.com/repos/jcbvm/require-i18next/issues/comments/133085925","html_url":"https://github.com/jcbvm/require-i18next/issues/14#issuecomment-133085925","issue_url":"https://api.github.com/repos/jcbvm/require-i18next/issues/14","id":133085925,"user":{"login":"jcbvm","id":3063303,"avatar_url":"https://avatars.githubusercontent.com/u/3063303?v=3","gravatar_id":"","url":"https://api.github.com/users/jcbvm","html_url":"https://github.com/jcbvm","followers_url":"https://api.github.com/users/jcbvm/followers","following_url":"https://api.github.com/users/jcbvm/following{/other_user}","gists_url":"https://api.github.com/users/jcbvm/gists{/gist_id}","starred_url":"https://api.github.com/users/jcbvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcbvm/subscriptions","organizations_url":"https://api.github.com/users/jcbvm/orgs","repos_url":"https://api.github.com/users/jcbvm/repos","events_url":"https://api.github.com/users/jcbvm/events{/privacy}","received_events_url":"https://api.github.com/users/jcbvm/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T17:32:26Z","updated_at":"2015-08-20T17:32:26Z","body":"From what I see the i18next lib is missing as dependency. The require-i18next plugin does not require it when installing (this due to an issue with requirejs where requiring jquery in a plugin results in errors). To include i18next in your build file, you can add the following to your build config file:\r\n\r\n    shim: {\r\n        \"app/startup\": [\"i18next\"]\r\n    }\r\n\r\nWhat this does is requiring the i18next lib when building your project."}}