{"action":"created","issue":{"url":"https://api.github.com/repos/ericmorand/twing/issues/166","repository_url":"https://api.github.com/repos/ericmorand/twing","labels_url":"https://api.github.com/repos/ericmorand/twing/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/ericmorand/twing/issues/166/comments","events_url":"https://api.github.com/repos/ericmorand/twing/issues/166/events","html_url":"https://github.com/ericmorand/twing/issues/166","id":308879204,"number":166,"title":"WARNING: Critical dependencies","user":{"login":"IftekherSunny","id":8013399,"avatar_url":"https://avatars2.githubusercontent.com/u/8013399?v=4","gravatar_id":"","url":"https://api.github.com/users/IftekherSunny","html_url":"https://github.com/IftekherSunny","followers_url":"https://api.github.com/users/IftekherSunny/followers","following_url":"https://api.github.com/users/IftekherSunny/following{/other_user}","gists_url":"https://api.github.com/users/IftekherSunny/gists{/gist_id}","starred_url":"https://api.github.com/users/IftekherSunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IftekherSunny/subscriptions","organizations_url":"https://api.github.com/users/IftekherSunny/orgs","repos_url":"https://api.github.com/users/IftekherSunny/repos","events_url":"https://api.github.com/users/IftekherSunny/events{/privacy}","received_events_url":"https://api.github.com/users/IftekherSunny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-03-27T08:56:54Z","updated_at":"2018-04-23T20:11:23Z","closed_at":null,"author_association":"NONE","body":"**ERROR:**\r\n\r\n```\r\n\r\nWARNING in ./~/twing/lib/twing/cache/filesystem.js\r\nCritical dependencies:\r\n31:19-38 the request of a dependency is an expression\r\n @ ./~/twing/lib/twing/cache/filesystem.js 31:19-38\r\n\r\nWARNING in ./~/twing/lib/twing/cache/filesystem.d.ts\r\nModule parse failed: /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/twing/lib/twing/cache/filesystem.d.ts Unexpected token (7:7)\r\nYou may need an appropriate loader to handle this file type.\r\nSyntaxError: Unexpected token (7:7)\r\n    at Parser.pp$4.raise (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:2221:15)\r\n    at Parser.pp.unexpected (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:603:10)\r\n    at Parser.pp.expect (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:597:28)\r\n    at Parser.pp$1.parseExportSpecifiers (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:1215:10)\r\n    at Parser.pp$1.parseExport (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:1186:30)\r\n    at Parser.pp$1.parseStatement (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:719:71)\r\n    at Parser.pp$1.parseTopLevel (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:638:25)\r\n    at Parser.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:516:17)\r\n    at Object.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:3098:39)\r\n    at Parser.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack/lib/Parser.js:902:15)\r\n    at NormalModule.<anonymous> (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack/lib/NormalModule.js:104:16)\r\n    at NormalModule.onModuleBuild (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)\r\n    at nextLoader (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)\r\n    at /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5\r\n    at Storage.finished (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)\r\n    at /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/graceful-fs/graceful-fs.js:78:16\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)\r\n @ ./~/twing/lib/twing/cache ^\\.\\/.*$\r\n\r\nWARNING in ./~/twing/lib/twing/cache/null.d.ts\r\nModule parse failed: /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/twing/lib/twing/cache/null.d.ts Unexpected token (7:7)\r\nYou may need an appropriate loader to handle this file type.\r\nSyntaxError: Unexpected token (7:7)\r\n    at Parser.pp$4.raise (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:2221:15)\r\n    at Parser.pp.unexpected (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:603:10)\r\n    at Parser.pp.expect (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:597:28)\r\n    at Parser.pp$1.parseExportSpecifiers (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:1215:10)\r\n    at Parser.pp$1.parseExport (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:1186:30)\r\n    at Parser.pp$1.parseStatement (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:719:71)\r\n    at Parser.pp$1.parseTopLevel (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:638:25)\r\n    at Parser.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:516:17)\r\n    at Object.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:3098:39)\r\n    at Parser.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack/lib/Parser.js:902:15)\r\n    at NormalModule.<anonymous> (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack/lib/NormalModule.js:104:16)\r\n    at NormalModule.onModuleBuild (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)\r\n    at nextLoader (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)\r\n    at /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5\r\n    at Storage.finished (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)\r\n    at /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/graceful-fs/graceful-fs.js:78:16\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)\r\n @ ./~/twing/lib/twing/cache ^\\.\\/.*$\r\n\r\nWARNING in ./~/object-hash/dist/object_hash.js\r\nCritical dependencies:\r\n1:383-390 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.\r\n @ ./~/object-hash/dist/object_hash.js 1:383-390\r\n\r\nWARNING in ./~/require-like/lib/require-like.js\r\nrequire.extensions is not supported by webpack. Use a loader instead.\r\n\r\nWARNING in ./~/require-like/lib/require-like.js\r\nCritical dependencies:\r\n30:24-31 require function is used in a way in which dependencies cannot be statically extracted\r\n @ ./~/require-like/lib/require-like.js 30:24-31\r\n\r\nERROR in ./~/require-like/lib/require-like.js\r\nModule not found: Error: Cannot resolve module 'module' in /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/require-like/lib\r\n @ ./~/require-like/lib/require-like.js 1:13-30\r\n\r\nERROR in ./~/iconv-lite/encodings/tables/gb18030-ranges.json\r\nModule parse failed: /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json Unexpected token (1:9)\r\nYou may need an appropriate loader to handle this file type.\r\nSyntaxError: Unexpected token (1:9)\r\n    at Parser.pp$4.raise (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:2221:15)\r\n    at Parser.pp.unexpected (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:603:10)\r\n    at Parser.pp.semicolon (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:581:61)\r\n    at Parser.pp$1.parseExpressionStatement (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:966:10)\r\n    at Parser.pp$1.parseStatement (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:730:24)\r\n    at Parser.pp$1.parseBlock (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:981:25)\r\n    at Parser.pp$1.parseStatement (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:709:33)\r\n    at Parser.pp$1.parseTopLevel (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:638:25)\r\n    at Parser.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:516:17)\r\n    at Object.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:3098:39)\r\n    at Parser.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack/lib/Parser.js:902:15)\r\n    at NormalModule.<anonymous> (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack/lib/NormalModule.js:104:16)\r\n    at NormalModule.onModuleBuild (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)\r\n    at nextLoader (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)\r\n    at /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5\r\n    at Storage.finished (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)\r\n    at /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/graceful-fs/graceful-fs.js:78:16\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)\r\n @ ./~/iconv-lite/encodings/dbcs-data.js 106:37-76\r\n\r\nERROR in ./~/constants-browserify/constants.json\r\nModule parse failed: /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/constants-browserify/constants.json Unexpected token (2:12)\r\nYou may need an appropriate loader to handle this file type.\r\nSyntaxError: Unexpected token (2:12)\r\n    at Parser.pp$4.raise (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:2221:15)\r\n    at Parser.pp.unexpected (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:603:10)\r\n    at Parser.pp.semicolon (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:581:61)\r\n    at Parser.pp$1.parseExpressionStatement (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:966:10)\r\n    at Parser.pp$1.parseStatement (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:730:24)\r\n    at Parser.pp$1.parseBlock (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:981:25)\r\n    at Parser.pp$1.parseStatement (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:709:33)\r\n    at Parser.pp$1.parseTopLevel (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:638:25)\r\n    at Parser.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:516:17)\r\n    at Object.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/acorn/dist/acorn.js:3098:39)\r\n    at Parser.parse (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack/lib/Parser.js:902:15)\r\n    at NormalModule.<anonymous> (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack/lib/NormalModule.js:104:16)\r\n    at NormalModule.onModuleBuild (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)\r\n    at nextLoader (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)\r\n    at /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5\r\n    at Storage.finished (/Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)\r\n    at /Users/iftekhersunny/Documents/code/quix/src/lib_quix/node_modules/graceful-fs/graceful-fs.js:78:16\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)\r\n @ ./~/graceful-fs/polyfills.js 2:16-36\r\n\r\n```\r\n\r\n**Webpack config:**\r\n\r\n```\r\nvar fs = require('fs');\r\nvar path = require('path');\r\nvar webpack = require('webpack');\r\nvar src = process.argv.indexOf('--backend') !== -1 ? path.join(__dirname, 'builder/backend'): path.join(__dirname, 'builder/frontend');\r\nvar dest = path.join(__dirname, 'assets/builder');\r\nvar fileName = process.argv.indexOf('--backend') !== -1 ? \"bundle.js\": \"qxfb.js\";\r\n\r\n\r\nmodule.exports = {\r\n  devtool: 'cheap-module-source-map',\r\n  entry: [\r\n    src + '/index.jsx'\r\n  ],\r\n  output: {\r\n    path: dest,\r\n    filename: fileName,\r\n    publicPath: __dirname + '/assets/builder/'\r\n  },\r\n  resolve: {\r\n    extensions: ['', '.json', '.js', '.jsx'],\r\n    modulesDirectories: ['node_modules', 'bower_components', src]\r\n  },\r\n  node: {\r\n    fs: \"empty\"\r\n  },\r\n  plugins: [\r\n    new webpack.NoErrorsPlugin(),\r\n    new webpack.DefinePlugin({\r\n      'process.env': {\r\n        'FREE': process.argv.indexOf('--free') !== -1 ? JSON.stringify(\"free\"): JSON.stringify(\"pro\")\r\n      }\r\n    }),\r\n  ],\r\n  module: {\r\n    loaders: [\r\n      {test: /\\.jsx?$/,\r\n          loader: 'babel?stage=0',\r\n          include: [].concat(src, [fs.realpathSync(path.resolve(__dirname, './node_modules/@themexpert/react-filemanager/'))])\r\n      },\r\n      {test: /\\.less$/, loader: 'style!css!less'},\r\n      {test: /\\.css$/, loader: 'style!css'},\r\n      {test: /\\.jpe?g$|\\.gif$|\\.png$/, loader: \"url-loader\"},\r\n\r\n      {test: /\\.woff(2)?(\\?v=[0-9]\\.[0-9]\\.[0-9])?$/, loader: \"url-loader?limit=10000&minetype=application/font-woff\"},\r\n      {test: /\\.ttf?(\\?v=[0-9]\\.[0-9]\\.[0-9])?$/, loader: \"url-loader?limit=10000&minetype=font/ttf\"},\r\n      {test: /\\.(eot|svg)(\\?v=[0-9]\\.[0-9]\\.[0-9])?$/, loader: \"file-loader\"}\r\n    ]\r\n  }\r\n};\r\n\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/ericmorand/twing/issues/comments/383706820","html_url":"https://github.com/ericmorand/twing/issues/166#issuecomment-383706820","issue_url":"https://api.github.com/repos/ericmorand/twing/issues/166","id":383706820,"user":{"login":"ericmorand","id":125664,"avatar_url":"https://avatars0.githubusercontent.com/u/125664?v=4","gravatar_id":"","url":"https://api.github.com/users/ericmorand","html_url":"https://github.com/ericmorand","followers_url":"https://api.github.com/users/ericmorand/followers","following_url":"https://api.github.com/users/ericmorand/following{/other_user}","gists_url":"https://api.github.com/users/ericmorand/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmorand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmorand/subscriptions","organizations_url":"https://api.github.com/users/ericmorand/orgs","repos_url":"https://api.github.com/users/ericmorand/repos","events_url":"https://api.github.com/users/ericmorand/events{/privacy}","received_events_url":"https://api.github.com/users/ericmorand/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T20:11:23Z","updated_at":"2018-04-23T20:11:23Z","author_association":"OWNER","body":"Hi @IftekherSunny, dId you fix this?"}}
{"actor":{"display_login":"ericmorand"}}