{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/babel-plugin-lodash/issues/95","repository_url":"https://api.github.com/repos/lodash/babel-plugin-lodash","labels_url":"https://api.github.com/repos/lodash/babel-plugin-lodash/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/lodash/babel-plugin-lodash/issues/95/comments","events_url":"https://api.github.com/repos/lodash/babel-plugin-lodash/issues/95/events","html_url":"https://github.com/lodash/babel-plugin-lodash/issues/95","id":166158934,"number":95,"title":"Module build failed: Cannot read property 'toLowerCase' of undefined ","user":{"login":"joyfulelement","id":5963818,"avatar_url":"https://avatars.githubusercontent.com/u/5963818?v=3","gravatar_id":"","url":"https://api.github.com/users/joyfulelement","html_url":"https://github.com/joyfulelement","followers_url":"https://api.github.com/users/joyfulelement/followers","following_url":"https://api.github.com/users/joyfulelement/following{/other_user}","gists_url":"https://api.github.com/users/joyfulelement/gists{/gist_id}","starred_url":"https://api.github.com/users/joyfulelement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyfulelement/subscriptions","organizations_url":"https://api.github.com/users/joyfulelement/orgs","repos_url":"https://api.github.com/users/joyfulelement/repos","events_url":"https://api.github.com/users/joyfulelement/events{/privacy}","received_events_url":"https://api.github.com/users/joyfulelement/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/babel-plugin-lodash/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-18T18:22:06Z","updated_at":"2016-07-18T21:09:51Z","closed_at":null,"body":"Hi, \r\n\r\nWith the upgrade to version 3.2.4, there seems to be a compatibility issue with lodash build and produces the following build error with webpack.\r\n\r\nHere was the line up of the modules that resulted a broken build:\r\n\r\n- lodash: **lodash@4.13.1**\r\n- babel-plugin-lodash:  **babel-plugin-lodash@3.2.4**\r\n\r\n\r\n```\r\nModule build failed: TypeError: /build/workspace/test/src/js/containers/test.js: Cannot read property 'toLowerCase' of undefined\r\n  [exec] at resolvePath (/build/workspace/test/node_modules/babel-plugin-lodash/lib/importModule.js:23:19)\r\n  [exec] at importModule (/build/workspace/test/node_modules/babel-plugin-lodash/lib/importModule.js:38:25)\r\n  [exec] at memoized (/build/workspace/test/node_modules/lodash/lodash.js:9870:27)\r\n  [exec] at /build/workspace/test/node_modules/babel-plugin-lodash/lib/index.js:120:59\r\n  [exec] at arrayEach (/build/workspace/test/node_modules/lodash/lodash.js:451:11)\r\n  [exec] at Function.forEach (/build/workspace/test/node_modules/lodash/lodash.js:8634:14)\r\n  [exec] at /build/workspace/test/node_modules/babel-plugin-lodash/lib/index.js:112:28\r\n  [exec] at arrayEach (/build/workspace/test/node_modules/lodash/lodash.js:451:11)\r\n  [exec] at Function.forEach (/build/workspace/test/node_modules/lodash/lodash.js:8634:14)\r\n  [exec] at /build/workspace/test/node_modules/babel-plugin-lodash/lib/index.js:105:26\r\n  [exec] at arrayEach (/build/workspace/test/node_modules/lodash/lodash.js:451:11)\r\n  [exec] at Function.forEach (/build/workspace/test/node_modules/lodash/lodash.js:8634:14)\r\n  [exec] at PluginPass.Program (/build/workspace/test/node_modules/babel-plugin-lodash/lib/index.js:95:24)\r\n  [exec] at newFn (/build/workspace/test/node_modules/babel-traverse/lib/visitors.js:301:19)\r\n  [exec] at NodePath._call (/build/workspace/test/node_modules/babel-traverse/lib/path/context.js:76:18)\r\n  [exec] at NodePath.call (/build/workspace/test/node_modules/babel-traverse/lib/path/context.js:48:17)\r\n  [exec] at NodePath.visit (/build/workspace/test/node_modules/babel-traverse/lib/path/context.js:106:12)\r\n  [exec] at TraversalContext.visitQueue (/build/workspace/test/node_modules/babel-traverse/lib/context.js:167:16)\r\n  [exec] at TraversalContext.visitSingle (/build/workspace/test/node_modules/babel-traverse/lib/context.js:118:19)\r\n  [exec] at TraversalContext.visit (/build/workspace/test/node_modules/babel-traverse/lib/context.js:211:19)\r\n  [exec] at Function.traverse.node (/build/workspace/test/node_modules/babel-traverse/lib/index.js:161:17)\r\n  [exec] at traverse (/build/workspace/test/node_modules/babel-traverse/lib/index.js:83:12)\r\n  [exec] at File.transform (/build/workspace/test/node_modules/babel-core/lib/transformation/file/index.js:548:35)\r\n  [exec] at /build/workspace/test/node_modules/babel-core/lib/transformation/pipeline.js:50:19\r\n  [exec] at File.wrap (/build/workspace/test/node_modules/babel-core/lib/transformation/file/index.js:563:16)\r\n  [exec] at Pipeline.transform (/build/workspace/test/node_modules/babel-core/lib/transformation/pipeline.js:47:17)\r\n  [exec] at transpile (/build/workspace/test/node_modules/babel-loader/index.js:14:22)\r\n  [exec] at Object.module.exports (/build/workspace/node_modules/babel-loader/index.js:88:12)\r\n```\r\n\r\nIn the previous babel-plugin-lodash build 3.2.3, which was successful when building against the same version of lodash, this was the lineup:\r\n\r\n- Lodash version: **lodash@4.13.1**\r\n- babel-plugin-lodash:  **babel-plugin-lodash@3.2.3**\r\n\r\nNote that the build environment was on ubuntu 14. Building on Windows doesn't seem to have this issue. Hope the information helps.\r\n"},"comment":{"url":"https://api.github.com/repos/lodash/babel-plugin-lodash/issues/comments/233459826","html_url":"https://github.com/lodash/babel-plugin-lodash/issues/95#issuecomment-233459826","issue_url":"https://api.github.com/repos/lodash/babel-plugin-lodash/issues/95","id":233459826,"user":{"login":"joyfulelement","id":5963818,"avatar_url":"https://avatars.githubusercontent.com/u/5963818?v=3","gravatar_id":"","url":"https://api.github.com/users/joyfulelement","html_url":"https://github.com/joyfulelement","followers_url":"https://api.github.com/users/joyfulelement/followers","following_url":"https://api.github.com/users/joyfulelement/following{/other_user}","gists_url":"https://api.github.com/users/joyfulelement/gists{/gist_id}","starred_url":"https://api.github.com/users/joyfulelement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyfulelement/subscriptions","organizations_url":"https://api.github.com/users/joyfulelement/orgs","repos_url":"https://api.github.com/users/joyfulelement/repos","events_url":"https://api.github.com/users/joyfulelement/events{/privacy}","received_events_url":"https://api.github.com/users/joyfulelement/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T21:09:51Z","updated_at":"2016-07-18T21:09:51Z","body":"I didn't find any direct calls to `importModule()`. Is there any specific code that you're looking for? \r\nAs far as I know, any JS file that contains the statement `import * as _ from 'lodash'` and the use of lodash results the build failure. "}}
{"actor":{"display_login":"joyfulelement"}}