{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/5598","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/5598/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/5598/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/5598/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/5598","id":490979007,"node_id":"MDU6SXNzdWU0OTA5NzkwMDc=","number":5598,"title":"Invalid sourcemaps in dist/","user":{"login":"Lucas-C","id":925560,"node_id":"MDQ6VXNlcjkyNTU2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/925560?v=4","gravatar_id":"","url":"https://api.github.com/users/Lucas-C","html_url":"https://github.com/Lucas-C","followers_url":"https://api.github.com/users/Lucas-C/followers","following_url":"https://api.github.com/users/Lucas-C/following{/other_user}","gists_url":"https://api.github.com/users/Lucas-C/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucas-C/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucas-C/subscriptions","organizations_url":"https://api.github.com/users/Lucas-C/orgs","repos_url":"https://api.github.com/users/Lucas-C/repos","events_url":"https://api.github.com/users/Lucas-C/events{/privacy}","received_events_url":"https://api.github.com/users/Lucas-C/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-09T09:18:38Z","updated_at":"2019-09-16T14:39:46Z","closed_at":null,"author_association":"NONE","body":"### Q&A (please complete the following information)\r\n - OS: Windows\r\n - Browser: NA\r\n - Version: latest (`master` branch)\r\n - Method of installation: NA\r\n - Swagger-UI version: latest (`master` branch)\r\n - Swagger/OpenAPI version: NA\r\n\r\n### Describe the bug you're encountering\r\nThe `.map` files provided in the `dist/` folder seem to be invalid, based on [sourcemap-validator](https://github.com/ben-ng/sourcemap-validator)\r\n\r\n### To reproduce...\r\nSteps to reproduce the behavior:\r\n1. Install the [`sourcemap-validate` command](https://github.com/ben-ng/sourcemap-validator/pull/15):\r\n`npm install -g git+https://github.com/Lucas-C/sourcemap-validator.git`\r\n2. Execute the following command in this repo:\r\n`sourcemap-validate dist/swagger-ui-bundle.js dist/swagger-ui-bundle.js.map`\r\n\r\n### Expected behavior\r\n`Validation OK`\r\n\r\n### Additional context or thoughts\r\nUsing `sourcemap-validate` I tested that the `Validation OK` message appears up to tag `v3.3.0`. Starting from tag `v3.4.0` the error appears.\r\n\r\nI found about this error in https://github.com/springfox/springfox/issues/3114, because my Firefox browser could not load the sourcemaps correctly.\r\n\r\nBased on the `package-lock.json` in this repo I cannot pinpoint exactly what version of `webpack-sources` it is using, but this error may be due to [a nasty bug broke sourcemaps it generated before version `1.4.1`](https://github.com/webpack/webpack/issues/8302#issuecomment-516964714)"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/531807588","html_url":"https://github.com/swagger-api/swagger-ui/issues/5598#issuecomment-531807588","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/5598","id":531807588,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMTgwNzU4OA==","user":{"login":"Lucas-C","id":925560,"node_id":"MDQ6VXNlcjkyNTU2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/925560?v=4","gravatar_id":"","url":"https://api.github.com/users/Lucas-C","html_url":"https://github.com/Lucas-C","followers_url":"https://api.github.com/users/Lucas-C/followers","following_url":"https://api.github.com/users/Lucas-C/following{/other_user}","gists_url":"https://api.github.com/users/Lucas-C/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucas-C/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucas-C/subscriptions","organizations_url":"https://api.github.com/users/Lucas-C/orgs","repos_url":"https://api.github.com/users/Lucas-C/repos","events_url":"https://api.github.com/users/Lucas-C/events{/privacy}","received_events_url":"https://api.github.com/users/Lucas-C/received_events","type":"User","site_admin":false},"created_at":"2019-09-16T14:39:46Z","updated_at":"2019-09-16T14:39:46Z","author_association":"NONE","body":"Here is the stacktrace I get by the way :\r\n```$ sourcemap-validate swagger-ui-bundle.js swagger-ui-bundle.js.map\r\nC:\\Users\\lucas_cimon\\AppData\\Roaming\\npm\\node_modules\\sourcemap-validator\\index.js:155\r\n          throw new Error(errMsg);\r\n          ^\r\n\r\nError: Warning: mismatched names\r\nExpected: root || 'root' || 'root' || \"root\" || \"root\"\r\nGot: (fun || (funct || (funct || (funct || (funct\r\nOriginal Line: (function webpackUniversalModuleDefinition(root, factory) {\r\nMapping: 1:10→1:0 \"root\" in webpack:///webpack/universalModuleDefinition\r\n    at C:\\Users\\lucas_cimon\\AppData\\Roaming\\npm\\node_modules\\sourcemap-validator\\index.js:155:17\r\n    at Array.forEach (<anonymous>)\r\n    at SourceMapConsumer_eachMapping [as eachMapping] (C:\\Users\\lucas_cimon\\AppData\\Roaming\\npm\\node_modules\\sourcemap-validator\\node_modules\\source-map\\lib\\source-map\\source-map-consumer.js:570:10)\r\n    at validate (C:\\Users\\lucas_cimon\\AppData\\Roaming\\npm\\node_modules\\sourcemap-validator\\index.js:92:12)\r\n    at Object.<anonymous> (C:\\Users\\lucas_cimon\\AppData\\Roaming\\npm\\node_modules\\sourcemap-validator\\index.js:166:5)\r\n    at Module._compile (module.js:643:30)\r\n    at Object.Module._extensions..js (module.js:654:10)\r\n    at Module.load (module.js:556:32)\r\n    at tryModuleLoad (module.js:499:12)\r\n    at Function.Module._load (module.js:491:3)\r\n```"}}
{"actor":{"display_login":"Lucas-C"}}