{"action":"created","issue":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/1277","repository_url":"https://api.github.com/repos/parcel-bundler/parcel","labels_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/1277/labels{/name}","comments_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/1277/comments","events_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/1277/events","html_url":"https://github.com/parcel-bundler/parcel/issues/1277","id":319483069,"node_id":"MDU6SXNzdWUzMTk0ODMwNjk=","number":1277,"title":" Cannot read property 'env' of undefined","user":{"login":"pke","id":164625,"node_id":"MDQ6VXNlcjE2NDYyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/164625?v=4","gravatar_id":"","url":"https://api.github.com/users/pke","html_url":"https://github.com/pke","followers_url":"https://api.github.com/users/pke/followers","following_url":"https://api.github.com/users/pke/following{/other_user}","gists_url":"https://api.github.com/users/pke/gists{/gist_id}","starred_url":"https://api.github.com/users/pke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pke/subscriptions","organizations_url":"https://api.github.com/users/pke/orgs","repos_url":"https://api.github.com/users/pke/repos","events_url":"https://api.github.com/users/pke/events{/privacy}","received_events_url":"https://api.github.com/users/pke/received_events","type":"User","site_admin":false},"labels":[{"id":663703608,"node_id":"MDU6TGFiZWw2NjM3MDM2MDg=","url":"https://api.github.com/repos/parcel-bundler/parcel/labels/:bug:%20Bug","name":":bug: Bug","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-02T09:42:40Z","updated_at":"2018-06-12T07:47:03Z","closed_at":null,"author_association":"NONE","body":"this a 🐛 bug report \r\n\r\n<!--- Provide a general summary of the issue in the title above -->\r\n\r\nParcel produced an error but builds the packages just fine.\r\n\r\n### 🎛 Configuration (.babelrc, package.json, cli command)\r\n\r\n<!--- If describing a bug, tell us what your babel configuration looks like -->\r\n\r\n```js\r\n{\r\n  \"presets\": [[\"env\", \"react\"]],\r\n  \"plugins\": [\r\n    [\"transform-class-properties\"],\r\n    [\"transform-object-rest-spread\", {\r\n      \"useBuiltIns\": true\r\n    }],\r\n    [\"module-resolver\", {\r\n      \"root\": [\"./src\"]\r\n    }],\r\n    [\"transform-class-properties\"],\r\n    [\"syntax-dynamic-import\"],\r\n    [\"styled-jsx/babel\"]\r\n  ],\r\n  \"env\": {\r\n    \"test\": {\r\n      \"plugins\": [\"istanbul\"]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n### 😯 Current Behavior\r\n\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n\r\n<!--- If you are seeing an error, please include the full error message and stack trace -->\r\n\r\n```cli\r\n> parcel --no-cache ./src/index.html\r\n\r\nServer running at http://localhost:1234\r\n∞  Building...\r\n\r\n‼  Cannot read property 'env' of undefined\r\n    at Object.init (C:\\dev\\projects\\product-frontend\\node_modules\\parcel-bundler\\src\\worker.js:10:38)\r\n    at WorkerFarm.init (C:\\dev\\projects\\product-frontend\\node_modules\\parcel-bundler\\src\\workerfarm\\WorkerFarm.js:179:22)\r\n    at new WorkerFarm (C:\\dev\\projects\\product-frontend\\node_modules\\parcel-bundler\\src\\workerfarm\\WorkerFarm.js:32:10)\r\n    at Function.getShared (C:\\dev\\projects\\product-frontend\\node_modules\\parcel-bundler\\src\\workerfarm\\WorkerFarm.js:261:16)\r\n    at Object.addCall (C:\\dev\\projects\\product-frontend\\node_modules\\parcel-bundler\\src\\worker.js:33:23)\r\n    at localRequire (C:\\dev\\projects\\product-frontend\\node_modules\\parcel-bundler\\src\\utils\\localRequire.js:16:22)\r\n    at Bundler.loadPlugins (C:\\dev\\projects\\product-frontend\\node_modules\\parcel-bundler\\src\\Bundler.js:165:30)\r\n    at <anonymous>\r\n∞  Building index.html...\r\n∞  Building index.js...\r\n∞  Building style.scss...\r\n\r\n```\r\n\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n\r\n### 🔦 Context\r\n\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n\r\nThis happens when calling\r\n`parcel --no-cache ./src/index.html`\r\n\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\n\r\n\r\n### 🌍 Your Environment\r\n\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n| Software         | Version(s) |\r\n| ---------------- | ---------- |\r\n| Parcel           | 1.7.1\r\n| Node             | 9.9.0\r\n| npm        | 5.6.0\r\n| Operating System | Win  8.1\r\n\r\n<!-- Love parcel? Please consider supporting our collective:\r\n👉  https://opencollective.com/parcel/donate -->\r\n"},"comment":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/comments/396497991","html_url":"https://github.com/parcel-bundler/parcel/issues/1277#issuecomment-396497991","issue_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/1277","id":396497991,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjQ5Nzk5MQ==","user":{"login":"QAQLiuCong","id":39507436,"node_id":"MDQ6VXNlcjM5NTA3NDM2","avatar_url":"https://avatars1.githubusercontent.com/u/39507436?v=4","gravatar_id":"","url":"https://api.github.com/users/QAQLiuCong","html_url":"https://github.com/QAQLiuCong","followers_url":"https://api.github.com/users/QAQLiuCong/followers","following_url":"https://api.github.com/users/QAQLiuCong/following{/other_user}","gists_url":"https://api.github.com/users/QAQLiuCong/gists{/gist_id}","starred_url":"https://api.github.com/users/QAQLiuCong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QAQLiuCong/subscriptions","organizations_url":"https://api.github.com/users/QAQLiuCong/orgs","repos_url":"https://api.github.com/users/QAQLiuCong/repos","events_url":"https://api.github.com/users/QAQLiuCong/events{/privacy}","received_events_url":"https://api.github.com/users/QAQLiuCong/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T07:47:03Z","updated_at":"2018-06-12T07:47:03Z","author_association":"NONE","body":"\r\n> parcel build index.html --public-url ./ --no-source-maps\r\n\r\n√  Built in 12.43s.\r\n‼  Cannot read property 'env' of undefined\r\n    at Object.init (f:\\VueProject\\node_modules\\parcel-bundler\\src\\worker.js:10:38)\r\n    at WorkerFarm.init (f:\\VueProject\\node_modules\\parcel-bundler\\src\\workerfarm\\WorkerFarm.js:208:22)\r\n    at new WorkerFarm (f:\\VueProject\\node_modules\\parcel-bundler\\src\\workerfarm\\WorkerFarm.js:30:10)\r\n    at Function.getShared (f:\\VueProject\\node_modules\\parcel-bundler\\src\\workerfarm\\WorkerFarm.js:258:16)\r\n    at Object.addCall (f:\\VueProject\\node_modules\\parcel-bundler\\src\\worker.js:33:23)\r\n    at localRequire (f:\\VueProject\\node_modules\\parcel-bundler\\src\\utils\\localRequire.js:16:22)\r\n    at Bundler.loadPlugins (f:\\VueProject\\node_modules\\parcel-bundler\\src\\Bundler.js:192:30)\r\n\r\n\r\nParcel: 1.81\r\nNode: 10.2.0\r\nnpm: 6.1.0\r\nOS: win10\r\n\r\npackage.json\r\n{\r\n  \"name\": \"vueproject\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"dev\": \"parcel index.html\",\r\n    \"build\": \"parcel build index.html --public-url ./ --no-source-maps\"\r\n  },\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\",\r\n  \"dependencies\": {\r\n    \"vue\": \"^2.5.16\",\r\n    \"vue-hot-reload-api\": \"^2.3.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@vue/component-compiler-utils\": \"^1.3.1\",\r\n    \"autoprefixer\": \"^8.6.1\",\r\n    \"babel-polyfill\": \"^6.26.0\",\r\n    \"babel-preset-env\": \"^1.7.0\",\r\n    \"babel-preset-vue\": \"^2.0.2\",\r\n    \"cssnano\": \"^3.10.0\",\r\n    \"node-sass\": \"^4.9.0\",\r\n    \"parcel-bundler\": \"^1.8.1\",\r\n    \"parcel-plugin-imagemin\": \"^1.1.1\",\r\n    \"postcss-modules\": \"^1.1.0\",\r\n    \"precss\": \"^3.1.2\",\r\n    \"vue-template-compiler\": \"^2.5.16\"\r\n  },\r\n  \"browserslist\": [\r\n    \"> 1%\",\r\n    \"last 2 versions\",\r\n    \"not ie <= 8\",\r\n    \"iOS >= 7\",\r\n    \"Android > 4.1\"\r\n  ]\r\n}"}}
{"actor":{"display_login":"QAQLiuCong"}}