{"action":"created","issue":{"url":"https://api.github.com/repos/egoist/poi/issues/408","repository_url":"https://api.github.com/repos/egoist/poi","labels_url":"https://api.github.com/repos/egoist/poi/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/egoist/poi/issues/408/comments","events_url":"https://api.github.com/repos/egoist/poi/issues/408/events","html_url":"https://github.com/egoist/poi/issues/408","id":312836275,"number":408,"title":"ERROR in ./index.js Module not found: Error: Can't resolve 'postcss-loader'","user":{"login":"pbastowski","id":5649024,"avatar_url":"https://avatars2.githubusercontent.com/u/5649024?v=4","gravatar_id":"","url":"https://api.github.com/users/pbastowski","html_url":"https://github.com/pbastowski","followers_url":"https://api.github.com/users/pbastowski/followers","following_url":"https://api.github.com/users/pbastowski/following{/other_user}","gists_url":"https://api.github.com/users/pbastowski/gists{/gist_id}","starred_url":"https://api.github.com/users/pbastowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbastowski/subscriptions","organizations_url":"https://api.github.com/users/pbastowski/orgs","repos_url":"https://api.github.com/users/pbastowski/repos","events_url":"https://api.github.com/users/pbastowski/events{/privacy}","received_events_url":"https://api.github.com/users/pbastowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-10T09:11:42Z","updated_at":"2018-04-11T03:06:19Z","closed_at":"2018-04-10T15:33:46Z","author_association":"NONE","body":"<!-- Please don't delete this template or we'll close your issue -->\r\n<!-- Before creating an issue please make sure you are using the latest version of Poi. -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nbug\r\n\r\n<!-- Issues which contain questions or support requests will be closed. -->\r\n\r\n**What is the current behavior?**\r\n    \r\n    poi build\r\n\r\nresults in \r\n\r\n```bash\r\n● Poi █████████████████████████ compiling (0%)  \r\n \r\n\r\n(node:27702) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead\r\nTypeError: compiler.resolvers.normal.resolve is not a function\r\n✔ success Poi compiled in 11s 811ms\r\nEntrypoint client = vendors~client.b68f4de7.js vendors~client.b68f4de7.js.map client.c43c3eb8.js client.c43c3eb8.js.map\r\nEntrypoint user = user.046d7c37.js user.046d7c37.js.map\r\nEntrypoint survey = survey.f1965042.js survey.f1965042.js.map\r\nEntrypoint form = form.6b9e70c9.js form.6b9e70c9.js.map\r\nEntrypoint maintenance = maintenance.f44a4c98.js maintenance.f44a4c98.js.map\r\n\r\nERROR in ./index.js\r\nModule not found: Error: Can't resolve 'postcss-loader' in '/Users/paul/dev/kpmg/SOFY/client'\r\n @ ./index.js 94:0-43\r\n @ multi ./index.js\r\n\r\n...\r\n\r\nERROR in ./index.js\r\nModule not found: Error: Can't resolve 'postcss-loader' in '/Users/paul/dev/kpmg/SOFY/client'\r\n @ ./index.js 103:0-46\r\n @ multi ./index.js\r\n\r\nERROR in ./index.js\r\nModule not found: Error: Can't resolve 'postcss-loader' in '/Users/paul/dev/kpmg/SOFY/client'\r\n @ ./index.js 112:0-49\r\n @ multi ./index.js\r\n\r\nERROR in ./src/app/admin/systemVariable/systemVariable.route.js\r\nModule not found: Error: Can't resolve 'vue-loader' in '/Users/paul/dev/kpmg/SOFY/client'\r\n @ ./src/app/admin/systemVariable/systemVariable.route.js 1:0-58 5:93-111\r\n @ ./index.js\r\n @ multi ./index.js\r\n```\r\n\r\nPlease note that the `post-css` error message appears many times over, I just provided a sample\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\nHere is the poi.config.js file I use:\r\n\r\n```js\r\nconst ConcatPlugin = require('webpack-concat-plugin')\r\nconst EventHooksPlugin = require('event-hooks-webpack-plugin');\r\n\r\nconst bc = require('./build.config')\r\nconst updateAuthorizations = require('./create-data-authorizations')\r\n\r\nfunction prefix(a) {\r\n    return a.map(x => './' + x)\r\n}\r\n\r\nfunction vendorAssets(a, to, flatten = true) {\r\n    return a.map(x => ({ from: x, to, context: '', flatten }))\r\n}\r\n\r\nconst production = process.env.NODE_ENV === 'production'\r\n\r\n\r\nconst entry = {\r\n    client:      'index.js',\r\n    user:        'index-user.js',\r\n    survey:      'index-survey.js',\r\n    form:        'index-form.js',\r\n    maintenance: 'index-maintenance.js',\r\n}\r\n\r\n\r\nmodule.exports = {\r\n    // Minimize code only when building for production\r\n    minimize:  production,\r\n\r\n    // The target folder for the build\r\n    dist: 'build',\r\n\r\n    // For a production build we specify the entry chunk here\r\n    entry: production ? entry : undefined,\r\n\r\n    // ... and then we configure the emited index files.\r\n    html: production ? Object.keys(entry).map(e => ({\r\n        filename: entry[e].replace('.js', '.html'),\r\n        chunks:   [e, 'vendor', 'manifest'],\r\n        title:    'SOFY',\r\n    })) : undefined,\r\n\r\n\r\n    devServer: {\r\n        port:  4000,\r\n        proxy: {\r\n            '/api/*': {\r\n                target: 'http://localhost:8080',\r\n                secure: false\r\n            }\r\n        }\r\n    },\r\n\r\n    // ----------- Copy Files without processing\r\n    copy: [\r\n              { from: 'assets/**/!(*.js)', to: './', context: './src/' },\r\n              {\r\n                  from: './vendor/angular-surveys/dist/i18n/en/angular-surveys.json',\r\n                  to:   './assets/json/vendor/angular-surveys/dist/i18n/en/',\r\n              },\r\n              { from: 'documentation/**/*', to: './' },\r\n          ]\r\n          .concat(vendorAssets(bc.vendor_files.assets, './assets/images/'))\r\n          .concat(vendorAssets(bc.vendor_files.assetsForSurvey, './assets/'))\r\n          .concat(vendorAssets(bc.vendor_files.fonts, './fonts/'))\r\n    ,\r\n\r\n    webpack(config) {\r\n\r\n        // ----------- Plugins\r\n\r\n        // Concatenate small files into big files\r\n        config.plugins.push(\r\n            new ConcatPlugin({\r\n                sourceMap:     false,\r\n                // uglify:        true,\r\n                name:          'vendor-js',\r\n                fileName:      '[name].[hash:8].js',\r\n                filesToConcat: [\r\n                    prefix(bc.vendor_files.js),\r\n                    './src/assets/**/!(*.spec).js',\r\n                ],\r\n            }),\r\n\r\n            // When webpack is done bundling we want to\r\n            // update the authorizations file.\r\n            new EventHooksPlugin({\r\n                'done': () => {\r\n                    production && updateAuthorizations()\r\n                }\r\n            })\r\n        )\r\n\r\n\r\n        // ----------- Loaders\r\n\r\n        config.module.rules.push(\r\n            {\r\n                test:    [/\\.(css|js|tpl\\.html)/],\r\n                enforce: 'pre',\r\n                loader:  \"import-glob\",\r\n            },\r\n\r\n            // Pre-load all .tpl.html files into the AngularJS TemplateCache.\r\n            {\r\n                test:   /\\.tpl\\.html$/,\r\n                loader: 'angular-templatecache-loader-2?relativeTo=src/app/',\r\n            }\r\n        )\r\n\r\n        return config\r\n    }\r\n}\r\n\r\n// When building for production we annotate injected angular\r\n// services and also minimize the code. Without the annotations\r\n// some services would fail to lead.\r\nif (production) {\r\n    module.exports.babel = {\r\n        \"presets\": [\r\n            \"babel-preset-poi\"\r\n        ],\r\n        \"plugins\": [\r\n            \"angularjs-annotate\"\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\n<!-- A great way to do this is to provide your configuration via a GitHub gist. -->\r\n<!-- Best provide a minimal reproducible repo -->\r\n\r\n\r\n**What is the expected behavior?**\r\n\r\nWhen using 9.x version of poi, I get a successful build. I expect that version 10.x will produce the same results, but currently it fails with the error messages above.\r\n\r\nNow, I'm not sure if this is actually a build failure or just some warnings, but is sure looks scary to see all those post-css errors.\r\n\r\nUpdate: just confirmed that this is a hard failure. No build folder is created at all.\r\n\r\n**If this is a feature request, what is the motivation or use case for changing the behavior?**\r\n\r\n**Please mention other relevant information such as the browser version, Node.js version, Poi version and Operating System.**\r\n\r\n- Node 9.9\r\n- MacOS High Sierra\r\n- Chrome 65\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/egoist/poi/issues/comments/380312148","html_url":"https://github.com/egoist/poi/issues/408#issuecomment-380312148","issue_url":"https://api.github.com/repos/egoist/poi/issues/408","id":380312148,"user":{"login":"egoist","id":8784712,"avatar_url":"https://avatars2.githubusercontent.com/u/8784712?v=4","gravatar_id":"","url":"https://api.github.com/users/egoist","html_url":"https://github.com/egoist","followers_url":"https://api.github.com/users/egoist/followers","following_url":"https://api.github.com/users/egoist/following{/other_user}","gists_url":"https://api.github.com/users/egoist/gists{/gist_id}","starred_url":"https://api.github.com/users/egoist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egoist/subscriptions","organizations_url":"https://api.github.com/users/egoist/orgs","repos_url":"https://api.github.com/users/egoist/repos","events_url":"https://api.github.com/users/egoist/events{/privacy}","received_events_url":"https://api.github.com/users/egoist/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T03:06:19Z","updated_at":"2018-04-11T03:06:19Z","author_association":"OWNER","body":"@pbastowski I've tested it with https://gist.github.com/egoist/5e2f5ee0364b4bfbe144bb4e6cd660d4 and it works fine for me"}}
{"actor":{"display_login":"egoist"}}