{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/babel-plugin-filter-imports/issues/19","repository_url":"https://api.github.com/repos/ember-cli/babel-plugin-filter-imports","labels_url":"https://api.github.com/repos/ember-cli/babel-plugin-filter-imports/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/babel-plugin-filter-imports/issues/19/comments","events_url":"https://api.github.com/repos/ember-cli/babel-plugin-filter-imports/issues/19/events","html_url":"https://github.com/ember-cli/babel-plugin-filter-imports/issues/19","id":259875687,"number":19,"title":"Cannot find module package.json","user":{"login":"krasnoukhov","id":944286,"avatar_url":"https://avatars3.githubusercontent.com/u/944286?v=4","gravatar_id":"","url":"https://api.github.com/users/krasnoukhov","html_url":"https://github.com/krasnoukhov","followers_url":"https://api.github.com/users/krasnoukhov/followers","following_url":"https://api.github.com/users/krasnoukhov/following{/other_user}","gists_url":"https://api.github.com/users/krasnoukhov/gists{/gist_id}","starred_url":"https://api.github.com/users/krasnoukhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krasnoukhov/subscriptions","organizations_url":"https://api.github.com/users/krasnoukhov/orgs","repos_url":"https://api.github.com/users/krasnoukhov/repos","events_url":"https://api.github.com/users/krasnoukhov/events{/privacy}","received_events_url":"https://api.github.com/users/krasnoukhov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-22T16:53:24Z","updated_at":"2017-09-22T20:51:29Z","closed_at":null,"author_association":"NONE","body":"I'm seeing this weird issue on v1.0.3. It's not reproducible on v0.3.1\r\n\r\n```\r\nError: The Broccoli Plugin: [BroccoliMergeTrees: Addon#compileAddon(ember-attacher) ] failed with:\r\nError: Cannot find module '/project/node_modules/ember-attacher/node_modules/babel-plugin-filter-imports/lib//package.json'\r\n```\r\n\r\nThe integration code is here, which looks perfectly normal to me:\r\n\r\nhttps://github.com/kybishop/ember-attacher/blob/a2f1cd0850c4afc6b371cf121ff35138e4c0eca3/index.js#L35-L43\r\n\r\nAny help would be appreciated. Thanks"},"comment":{"url":"https://api.github.com/repos/ember-cli/babel-plugin-filter-imports/issues/comments/331557528","html_url":"https://github.com/ember-cli/babel-plugin-filter-imports/issues/19#issuecomment-331557528","issue_url":"https://api.github.com/repos/ember-cli/babel-plugin-filter-imports/issues/19","id":331557528,"user":{"login":"kybishop","id":679465,"avatar_url":"https://avatars0.githubusercontent.com/u/679465?v=4","gravatar_id":"","url":"https://api.github.com/users/kybishop","html_url":"https://github.com/kybishop","followers_url":"https://api.github.com/users/kybishop/followers","following_url":"https://api.github.com/users/kybishop/following{/other_user}","gists_url":"https://api.github.com/users/kybishop/gists{/gist_id}","starred_url":"https://api.github.com/users/kybishop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kybishop/subscriptions","organizations_url":"https://api.github.com/users/kybishop/orgs","repos_url":"https://api.github.com/users/kybishop/repos","events_url":"https://api.github.com/users/kybishop/events{/privacy}","received_events_url":"https://api.github.com/users/kybishop/received_events","type":"User","site_admin":false},"created_at":"2017-09-22T20:51:29Z","updated_at":"2017-09-22T20:51:29Z","author_association":"NONE","body":"@layershifter it works! Looks like something is a bit off though, getting a giant warning message from `ember s` and `ember b`:\r\n\r\n```\r\nember s -prod\r\nLivereload server on http://localhost:49153\r\nbroccoli-babel-transpiler is opting out of caching due to a plugin that does not provide a caching strategy: `function () {\r\n  return {\r\n    visitor: {\r\n      ImportDeclaration: function ImportDeclaration(path, _ref) {\r\n        var opts = _ref.opts;\r\n        var imports = opts.imports,\r\n            _opts$keepImports = opts.keepImports,\r\n            keepImports = _opts$keepImports === undefined ? false : _opts$keepImports;\r\n        var _path$node = path.node,\r\n            source = _path$node.source,\r\n            specifiers = _path$node.specifiers;\r\n\r\n        var members = _lodash2.default.get(imports, _lodash2.default.get(source, 'value'));\r\n\r\n        /*\r\n         * Heads up! This condition omits processing of non-filtered imports.\r\n         */\r\n        if (!members) return;\r\n\r\n        var specifiersForRemoval = (0, _getSpecifierNames2.default)(members, specifiers);\r\n        var specifierNames = _lodash2.default.map(specifiersForRemoval, 'local.name');\r\n\r\n        _lodash2.default.forEach(specifierNames, function (specifier) {\r\n          return (0, _removeReferences2.default)(path, specifier);\r\n        });\r\n\r\n        if (keepImports) return false;\r\n        if (specifiers.length === specifierNames.length) {\r\n          path.remove();\r\n          return;\r\n        }\r\n\r\n        _lodash2.default.set(path, 'node.specifiers', _lodash2.default.without.apply(_lodash2.default, [specifiers].concat(_toConsumableArray(specifiersForRemoval))));\r\n      }\r\n    }\r\n  };\r\n}`.\r\n```"}}
{"actor":{"display_login":"kybishop"}}