{"action":"created","issue":{"url":"https://api.github.com/repos/NervJS/taro/issues/5096","repository_url":"https://api.github.com/repos/NervJS/taro","labels_url":"https://api.github.com/repos/NervJS/taro/issues/5096/labels{/name}","comments_url":"https://api.github.com/repos/NervJS/taro/issues/5096/comments","events_url":"https://api.github.com/repos/NervJS/taro/issues/5096/events","html_url":"https://github.com/NervJS/taro/issues/5096","id":538524335,"node_id":"MDU6SXNzdWU1Mzg1MjQzMzU=","number":5096,"title":"微信云开发模板报错，提示Component is not found in path","user":{"login":"birdycn","id":32201961,"node_id":"MDQ6VXNlcjMyMjAxOTYx","avatar_url":"https://avatars0.githubusercontent.com/u/32201961?v=4","gravatar_id":"","url":"https://api.github.com/users/birdycn","html_url":"https://github.com/birdycn","followers_url":"https://api.github.com/users/birdycn/followers","following_url":"https://api.github.com/users/birdycn/following{/other_user}","gists_url":"https://api.github.com/users/birdycn/gists{/gist_id}","starred_url":"https://api.github.com/users/birdycn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdycn/subscriptions","organizations_url":"https://api.github.com/users/birdycn/orgs","repos_url":"https://api.github.com/users/birdycn/repos","events_url":"https://api.github.com/users/birdycn/events{/privacy}","received_events_url":"https://api.github.com/users/birdycn/received_events","type":"User","site_admin":false},"labels":[{"id":1112321245,"node_id":"MDU6TGFiZWwxMTEyMzIxMjQ1","url":"https://api.github.com/repos/NervJS/taro/labels/CLI","name":"CLI","color":"4646b5","default":false,"description":""}],"state":"open","locked":false,"assignee":{"login":"luckyadam","id":1782542,"node_id":"MDQ6VXNlcjE3ODI1NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1782542?v=4","gravatar_id":"","url":"https://api.github.com/users/luckyadam","html_url":"https://github.com/luckyadam","followers_url":"https://api.github.com/users/luckyadam/followers","following_url":"https://api.github.com/users/luckyadam/following{/other_user}","gists_url":"https://api.github.com/users/luckyadam/gists{/gist_id}","starred_url":"https://api.github.com/users/luckyadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckyadam/subscriptions","organizations_url":"https://api.github.com/users/luckyadam/orgs","repos_url":"https://api.github.com/users/luckyadam/repos","events_url":"https://api.github.com/users/luckyadam/events{/privacy}","received_events_url":"https://api.github.com/users/luckyadam/received_events","type":"User","site_admin":false},"assignees":[{"login":"luckyadam","id":1782542,"node_id":"MDQ6VXNlcjE3ODI1NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1782542?v=4","gravatar_id":"","url":"https://api.github.com/users/luckyadam","html_url":"https://github.com/luckyadam","followers_url":"https://api.github.com/users/luckyadam/followers","following_url":"https://api.github.com/users/luckyadam/following{/other_user}","gists_url":"https://api.github.com/users/luckyadam/gists{/gist_id}","starred_url":"https://api.github.com/users/luckyadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckyadam/subscriptions","organizations_url":"https://api.github.com/users/luckyadam/orgs","repos_url":"https://api.github.com/users/luckyadam/repos","events_url":"https://api.github.com/users/luckyadam/events{/privacy}","received_events_url":"https://api.github.com/users/luckyadam/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2019-12-16T16:39:07Z","updated_at":"2019-12-17T01:55:44Z","closed_at":null,"author_association":"NONE","body":"两个报错：\r\n```\r\nUncaught TypeError: Cannot read property 'defaultProps' of undefined\r\n\r\nComponent is not found in path \"npm/taro-ui/dist/weapp/components/button/index\" (using by \"components/login/index\");onAppRoute\r\nError: Component is not found in path \"npm/taro-ui/dist/weapp/components/button/index\" (using by \"components/login/index\")\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/32201961/70924951-62d2f680-2065-11ea-90d9-ff133e62477b.png)\r\ntaro init myApp\r\ncd client\r\ncnpm taro-ui\r\ncnpm install\r\n\r\n引用\r\n```\r\nimport { AtButton } from 'taro-ui'\r\n<AtButton type='primary'>按钮文案</AtButton>\r\n```\r\n\r\n报错，尝试了很久无法解决。\r\nconfig index配置：esnextModules: ['taro-ui'],，h5编译正常\r\n\r\n但小程序报错。"},"comment":{"url":"https://api.github.com/repos/NervJS/taro/issues/comments/566344179","html_url":"https://github.com/NervJS/taro/issues/5096#issuecomment-566344179","issue_url":"https://api.github.com/repos/NervJS/taro/issues/5096","id":566344179,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NjM0NDE3OQ==","user":{"login":"Chen-jj","id":11807297,"node_id":"MDQ6VXNlcjExODA3Mjk3","avatar_url":"https://avatars3.githubusercontent.com/u/11807297?v=4","gravatar_id":"","url":"https://api.github.com/users/Chen-jj","html_url":"https://github.com/Chen-jj","followers_url":"https://api.github.com/users/Chen-jj/followers","following_url":"https://api.github.com/users/Chen-jj/following{/other_user}","gists_url":"https://api.github.com/users/Chen-jj/gists{/gist_id}","starred_url":"https://api.github.com/users/Chen-jj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chen-jj/subscriptions","organizations_url":"https://api.github.com/users/Chen-jj/orgs","repos_url":"https://api.github.com/users/Chen-jj/repos","events_url":"https://api.github.com/users/Chen-jj/events{/privacy}","received_events_url":"https://api.github.com/users/Chen-jj/received_events","type":"User","site_admin":false},"created_at":"2019-12-17T01:55:44Z","updated_at":"2019-12-17T01:55:44Z","author_association":"CONTRIBUTOR","body":"@birdycn 请按 issue 模板提供一切必要信息。"}}
{"actor":{"display_login":"Chen-jj"}}