{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-next/issues/1943","repository_url":"https://api.github.com/repos/strongloop/loopback-next","labels_url":"https://api.github.com/repos/strongloop/loopback-next/issues/1943/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-next/issues/1943/comments","events_url":"https://api.github.com/repos/strongloop/loopback-next/issues/1943/events","html_url":"https://github.com/strongloop/loopback-next/issues/1943","id":375474634,"node_id":"MDU6SXNzdWUzNzU0NzQ2MzQ=","number":1943,"title":"lb4 export-api-def results in AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist:","user":{"login":"oliverkarst","id":7408536,"node_id":"MDQ6VXNlcjc0MDg1MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/7408536?v=4","gravatar_id":"","url":"https://api.github.com/users/oliverkarst","html_url":"https://github.com/oliverkarst","followers_url":"https://api.github.com/users/oliverkarst/followers","following_url":"https://api.github.com/users/oliverkarst/following{/other_user}","gists_url":"https://api.github.com/users/oliverkarst/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverkarst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverkarst/subscriptions","organizations_url":"https://api.github.com/users/oliverkarst/orgs","repos_url":"https://api.github.com/users/oliverkarst/repos","events_url":"https://api.github.com/users/oliverkarst/events{/privacy}","received_events_url":"https://api.github.com/users/oliverkarst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-30T12:55:48Z","updated_at":"2018-11-01T15:10:24Z","closed_at":null,"author_association":"NONE","body":"## Description / Steps to reproduce / Feature proposal\r\n\r\nI would like to generate the openapi.json or a swagger definition in any kind. But templates are missing.\r\n\r\n## Current Behavior\r\n\r\n$ lb4 export-api-def\r\n? Project description: nma-services-swagger\r\n? Project root directory: client-swagger\r\n? Application class name: tests\r\n? Select features to enable in the project Enable tslint, Enable prettier, Enable mocha, Enable loopbackBuild, Enable vs\r\ncode, Enable repositories, Enable services\r\nevents.js:183\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nAssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: D:\\Users\\myname\\AppData(Roaming)\\npm\\node_modules\\@loopback\\cli\\generators\\project\\templates\\**\\*\r\n    at EditionInterface.exports.copy (D:\\Users\\myname\\AppData(Roaming)\\npm\\node_modules\\@loopback\\cli\\node_modules\\mem-fs-editor\\lib\\actions\\copy.js:48:3)\r\n    at EditionInterface.module.exports [as copyTpl] (D:\\Users\\myname\\AppData(Roaming)\\npm\\node_modules\\@loopback\\cli\\node_modules\\mem-fs-editor\\lib\\actions\\copy-tpl.js:29:8)\r\n    at AppGenerator.scaffold (D:\\Users\\myname\\AppData(Roaming)\\npm\\node_modules\\@loopback\\cli\\lib\\project-generator.js:195:13)\r\n    at AppGenerator.scaffold (D:\\Users\\myname\\AppData(Roaming)\\npm\\node_modules\\@loopback\\cli\\generators\\app\\index.js:109:18)\r\n    at Object.<anonymous> (D:\\Users\\myname\\AppData(Roaming)\\npm\\node_modules\\@loopback\\cli\\node_modules\\yeoman-generator\\lib\\index.js:424:27)\r\n\r\n## Expected Behavior\r\n\r\na file is generated that contains the swagger / openapi definition."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-next/issues/comments/435071813","html_url":"https://github.com/strongloop/loopback-next/issues/1943#issuecomment-435071813","issue_url":"https://api.github.com/repos/strongloop/loopback-next/issues/1943","id":435071813,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTA3MTgxMw==","user":{"login":"raymondfeng","id":540892,"node_id":"MDQ6VXNlcjU0MDg5Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/540892?v=4","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T15:10:24Z","updated_at":"2018-11-01T15:10:24Z","author_association":"MEMBER","body":"@oliverkarst I believe the issue is related to the path with `()` chars. See https://github.com/strongloop/loopback-next/pull/1958"}}
{"actor":{"display_login":"raymondfeng"}}