{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/25659","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/25659/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/25659/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/25659/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/25659","id":321684553,"node_id":"MDU6SXNzdWUzMjE2ODQ1NTM=","number":25659,"title":"@types/lodash Module has no exported member","user":{"login":"vsviridov","id":221684,"node_id":"MDQ6VXNlcjIyMTY4NA==","avatar_url":"https://avatars1.githubusercontent.com/u/221684?v=4","gravatar_id":"","url":"https://api.github.com/users/vsviridov","html_url":"https://github.com/vsviridov","followers_url":"https://api.github.com/users/vsviridov/followers","following_url":"https://api.github.com/users/vsviridov/following{/other_user}","gists_url":"https://api.github.com/users/vsviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/vsviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsviridov/subscriptions","organizations_url":"https://api.github.com/users/vsviridov/orgs","repos_url":"https://api.github.com/users/vsviridov/repos","events_url":"https://api.github.com/users/vsviridov/events{/privacy}","received_events_url":"https://api.github.com/users/vsviridov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-09T18:50:36Z","updated_at":"2018-07-27T08:44:30Z","closed_at":null,"author_association":"NONE","body":"Recently I've started getting errors like `Module '\".../@types/lodash/index\"' has no exported member `\r\nfor the methods that are definitely there, like `map`, `filter`, `find`, `each`, `includes`, etc...\r\n\r\nSame error also happens for the `import { map } from 'lodash/map'`\r\n\r\n@bczengel @chrootsu @stepancar @aj-r @ailrun @e-cloud @thorn0 @jtmthf @DomiR\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments/408353926","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/25659#issuecomment-408353926","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/25659","id":408353926,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODM1MzkyNg==","user":{"login":"antonyoneill","id":2429225,"node_id":"MDQ6VXNlcjI0MjkyMjU=","avatar_url":"https://avatars3.githubusercontent.com/u/2429225?v=4","gravatar_id":"","url":"https://api.github.com/users/antonyoneill","html_url":"https://github.com/antonyoneill","followers_url":"https://api.github.com/users/antonyoneill/followers","following_url":"https://api.github.com/users/antonyoneill/following{/other_user}","gists_url":"https://api.github.com/users/antonyoneill/gists{/gist_id}","starred_url":"https://api.github.com/users/antonyoneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonyoneill/subscriptions","organizations_url":"https://api.github.com/users/antonyoneill/orgs","repos_url":"https://api.github.com/users/antonyoneill/repos","events_url":"https://api.github.com/users/antonyoneill/events{/privacy}","received_events_url":"https://api.github.com/users/antonyoneill/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T08:44:30Z","updated_at":"2018-07-27T08:44:30Z","author_association":"NONE","body":"Just to bump this issue, I've just installed `@types/lodash` and I'm getting the following compilation error, repeated for each module I've included.\r\n```\r\nTS2497: Module '\"./node_modules/@types/lodash/assign\"' resolves to a non-module entity and cannot be imported using this construct.\r\n```\r\n\r\nSource:\r\n```\r\nimport * as first from 'lodash/first'\r\nimport * as keys from 'lodash/keys'\r\nimport * as map from 'lodash/map'\r\nimport * as reduce from 'lodash/reduce'\r\nimport * as sortBy from 'lodash/sortBy'\r\nimport * as truncate from 'lodash/truncate'\r\nimport * as values from 'lodash/values'\r\n```\r\n\r\nPrior to installing the types this code compiled fine (and so I will be uninstalling the types package)\r\n\r\nSince @vsviridov has not provided you with the versions, I hope mine are helpful:\r\n```\r\n➜  npm list --depth=0 typescript @types/lodash lodash\r\njs@1.0.0 .\r\n...\r\n├── @types/lodash@4.14.113\r\n├── awesome-typescript-loader@3.5.0\r\n├── lodash@4.17.10\r\n├── typescript@2.9.1\r\n...\r\n➜  cat ./tsconfig.json\r\n{\r\n  \"compilerOptions\": {\r\n    \"module\": \"commonjs\",\r\n    \"target\": \"es5\",\r\n    \"jsx\": \"react\",\r\n    \"types\": [\r\n      \"webpack-env\",\r\n      \"node\"\r\n    ],\r\n    \"allowJs\": true,\r\n    \"lib\": [\r\n      \"DOM\",\r\n      \"ES5\",\r\n      \"ScriptHost\",\r\n      \"es2015\"\r\n    ]\r\n  },\r\n  \"include\": [\r\n    \"./src/**/*\"\r\n  ]\r\n}\r\n```\r\n\r\nI include each module separately to avoid bundling the entire lodash library when I only need a handful of the utilities"}}
{"actor":{"display_login":"antonyoneill"}}