{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/6607","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/6607/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/6607/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/6607/events","html_url":"https://github.com/magento/magento2/issues/6607","id":176865964,"number":6607,"title":"Custom theme requirejs-config not loading custom javascript","user":{"login":"Colir","id":327347,"avatar_url":"https://avatars.githubusercontent.com/u/327347?v=3","gravatar_id":"","url":"https://api.github.com/users/Colir","html_url":"https://github.com/Colir","followers_url":"https://api.github.com/users/Colir/followers","following_url":"https://api.github.com/users/Colir/following{/other_user}","gists_url":"https://api.github.com/users/Colir/gists{/gist_id}","starred_url":"https://api.github.com/users/Colir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Colir/subscriptions","organizations_url":"https://api.github.com/users/Colir/orgs","repos_url":"https://api.github.com/users/Colir/repos","events_url":"https://api.github.com/users/Colir/events{/privacy}","received_events_url":"https://api.github.com/users/Colir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-14T10:02:18Z","updated_at":"2016-09-15T16:41:35Z","closed_at":"2016-09-15T16:41:35Z","body":"Hi.\r\n\r\nI think i'm doing something wrong, but i did'nt see what and i'm going crazy.\r\nI try to load a custom JS file on all my magento (2.1) page.\r\n\r\nSo, according to the doc, i put my js file in \"web/js\" of my theme, then i create a requirejs-config.js at the root of my theme.\r\n\r\nMy config file is correctly merge with all the the requirejs-config file.\r\n\r\nBut i don't know why : the js file specified did'nt load (no 404, just not load....)\r\n\r\nhere is my file\r\n\r\n```\r\nvar config = {\r\n    \"map\": {\r\n        \"*\": {\r\n            \r\n            \"plugins\": \"js/plugins\",\r\n            \"themeapp\": \"js/custom\"\r\n        }\r\n    }\r\n};\r\n```\r\n\r\nand an extract of complete file generated\r\n\r\n```\r\n...\r\nrequire.config(config);\r\n})();\r\n(function() {\r\n/**\r\n * Copyright © 2016 Magento. All rights reserved.\r\n * See COPYING.txt for license details.\r\n */\r\n\r\nvar config = {\r\n    map: {\r\n        '*': {\r\n            wishlist:       'Magento_Wishlist/wishlist',\r\n            addToWishlist:  'Magento_Wishlist/js/add-to-wishlist',\r\n            wishlistSearch: 'Magento_Wishlist/js/search'\r\n        }\r\n    }\r\n};\r\nrequire.config(config);\r\n})();\r\n(function() {\r\nvar config = {\r\n    \"map\": {\r\n        \"*\": {\r\n            \r\n            \"plugins\": \"js/plugins\",\r\n            \"themeapp\": \"js/custom\"\r\n        }\r\n    }\r\n};\r\nrequire.config(config);\r\n})();\r\n\r\n})(require);\r\n```\r\n\r\nThanks for you help."},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/247382756","html_url":"https://github.com/magento/magento2/issues/6607#issuecomment-247382756","issue_url":"https://api.github.com/repos/magento/magento2/issues/6607","id":247382756,"user":{"login":"davidalger","id":658281,"avatar_url":"https://avatars.githubusercontent.com/u/658281?v=3","gravatar_id":"","url":"https://api.github.com/users/davidalger","html_url":"https://github.com/davidalger","followers_url":"https://api.github.com/users/davidalger/followers","following_url":"https://api.github.com/users/davidalger/following{/other_user}","gists_url":"https://api.github.com/users/davidalger/gists{/gist_id}","starred_url":"https://api.github.com/users/davidalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidalger/subscriptions","organizations_url":"https://api.github.com/users/davidalger/orgs","repos_url":"https://api.github.com/users/davidalger/repos","events_url":"https://api.github.com/users/davidalger/events{/privacy}","received_events_url":"https://api.github.com/users/davidalger/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T16:41:35Z","updated_at":"2016-09-15T16:41:35Z","body":"The GitHub issue tracker is intended for technical issues only. Please refer to the [Community Forums](https://community.magento.com) or [Magento Stack Exchange](http://magento.stackexchange.com/) site for technical questions. In your case, the [programming questions forum](https://community.magento.com/t5/Programming-Questions/bd-p/programming-magento-2) is likely the most appropriate. Feel free to reopen this issue if you think you have encountered a bug in Magento 2."}}
{"actor":{"display_login":"davidalger"}}