{"action":"closed","issue":{"url":"https://api.github.com/repos/jlouns/gulp-requirejs-optimize/issues/32","repository_url":"https://api.github.com/repos/jlouns/gulp-requirejs-optimize","labels_url":"https://api.github.com/repos/jlouns/gulp-requirejs-optimize/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/jlouns/gulp-requirejs-optimize/issues/32/comments","events_url":"https://api.github.com/repos/jlouns/gulp-requirejs-optimize/issues/32/events","html_url":"https://github.com/jlouns/gulp-requirejs-optimize/issues/32","id":254723396,"number":32,"title":"Path must be a string.","user":{"login":"wellfrog16","id":22096815,"avatar_url":"https://avatars0.githubusercontent.com/u/22096815?v=4","gravatar_id":"","url":"https://api.github.com/users/wellfrog16","html_url":"https://github.com/wellfrog16","followers_url":"https://api.github.com/users/wellfrog16/followers","following_url":"https://api.github.com/users/wellfrog16/following{/other_user}","gists_url":"https://api.github.com/users/wellfrog16/gists{/gist_id}","starred_url":"https://api.github.com/users/wellfrog16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellfrog16/subscriptions","organizations_url":"https://api.github.com/users/wellfrog16/orgs","repos_url":"https://api.github.com/users/wellfrog16/repos","events_url":"https://api.github.com/users/wellfrog16/events{/privacy}","received_events_url":"https://api.github.com/users/wellfrog16/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-01T18:50:36Z","updated_at":"2017-10-19T02:41:31Z","closed_at":"2017-10-19T02:41:31Z","author_association":"NONE","body":"I can confirm it works with Node v4.6\r\nI got an error on Node v8.2.1\r\n\r\nI got success when packaged with r.js directly\r\n\r\nconfig\r\n```\r\nrequire.config(\r\n{\r\n    ... ...\r\n    map: {\r\n        '*': {\r\n            'css': 'requirejs/css.min'\r\n        }\r\n    },\r\n\r\n    paths: {\r\n        ... ...\r\n        'swiper': 'lib/swiper/swiper-3.4.2.jquery.min',\r\n        ... ...\r\n    },\r\n\r\n    shim: {\r\n        'swiper': ['css!./lib/swiper/swiper-3.4.2.min.css']\r\n    }\r\n})\r\n```\r\n\r\ngulpfile.js\r\n```\r\n... ...\r\ngulp.task('js:main', function () {\r\n    gulp.src('src/js/app.js')\r\n        .pipe(requirejsOptimize({\r\n            mainConfigFile: 'src/js/requirejs/require.config.js'\r\n        }))\r\n        .pipe(rename('main.min.js'))\r\n        .pipe(gulp.dest('dist/js'));\r\n});\r\n... ...\r\n```\r\n\r\nfolder: requirejs\r\n```\r\n    css-builder.js\r\n    css.min.js\r\n    normalize.js\r\n    require.config.js\r\n    require.js\r\n    text.js\r\n```\r\n\r\nerror\r\n```\r\nTypeError: Path must be a string. Received [Function]\r\nIn module tree:\r\n    app\r\n      script\r\n        requirejs/css.min\r\n\r\n\r\nevents.js:182\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\nError: TypeError: Path must be a string. Received [Function]\r\nIn module tree:\r\n    app\r\n      script\r\n        requirejs/css.min\r\n\r\n    at assertPath (path.js:28:11)\r\n\r\n    at f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:28326:19\r\n    at f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:3059:39\r\n    at f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:2999:25\r\n    at Function.prim.nextTick (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:28077:9)\r\n    at Object.errback (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:2998:26)\r\n    at Object.callback (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:2984:23)\r\n    at Object.then (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:3038:23)\r\n    at build (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:28283:12)\r\n    at runBuild (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:30291:17)\r\n    at Object.execCb (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:1946:33)\r\n    at Module.check (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:1133:51)\r\n    at Module.<anonymous> (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:1389:34)\r\n    at f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:384:23\r\n    at f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:1439:21\r\n    at each (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:309:31)\r\n    at Module.emit (f:\\Projects\\Template-Gulp\\node_modules\\requirejs\\bin\\r.js:1438:17)\r\n```\r\n\r\ncss plugin : [https://github.com/guybedford/require-css](https://github.com/guybedford/require-css)"}}
{"actor":{"display_login":"wellfrog16"}}