consolidate.js
consolidate.js copied to clipboard
[Webpack]require.extensions is not supported by webpack. Use a loader instead.
I'm running a universal example(koa2 + react) with consolidate as template resolver. Currently I'm facing a trouble when trying to webpack-build node.js server side code when I'm using target: 'node'
. It prints out something like require.extensions is not supported by webpack. Use a loader instead
error. Has anyone seen this error before? How should I handle it?
WARNING in ./~/consolidate/lib/consolidate.js require.extensions is not supported by webpack. Use a loader instead. @ ./~/consolidate/index.js 1:17-45 @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
WARNING in ./~/consolidate/lib/consolidate.js require.extensions is not supported by webpack. Use a loader instead. @ ./~/consolidate/index.js 1:17-45 @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
WARNING in ./~/consolidate/lib/consolidate.js require.extensions is not supported by webpack. Use a loader instead. @ ./~/consolidate/index.js 1:17-45 @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
WARNING in ./~/consolidate/lib/consolidate.js require.extensions is not supported by webpack. Use a loader instead. @ ./~/consolidate/index.js 1:17-45 @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
WARNING in ./~/consolidate/lib/consolidate.js require.extensions is not supported by webpack. Use a loader instead. @ ./~/consolidate/index.js 1:17-45 @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
WARNING in ./~/consolidate/lib/consolidate.js Module not found: Error: Can't resolve 'jade' in '/Users/erickim/Develop/front/react/glfm-cms/node_modules/consolidate/lib' @ ./~/consolidate/lib/consolidate.js 297:33-48 325:33-48 @ ./~/consolidate/index.js @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
WARNING in ./~/consolidate/lib/consolidate.js Module not found: Error: Can't resolve 'then-jade' in '/Users/erickim/Develop/front/react/glfm-cms/node_modules/consolidate/lib' @ ./~/consolidate/lib/consolidate.js 300:35-55 328:35-55 @ ./~/consolidate/index.js @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
WARNING in ./~/consolidate/lib/consolidate.js Module not found: Error: Can't resolve 'dust' in '/Users/erickim/Develop/front/react/glfm-cms/node_modules/consolidate/lib' @ ./~/consolidate/lib/consolidate.js 359:33-48 @ ./~/consolidate/index.js @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
WARNING in ./~/consolidate/lib/consolidate.js Module not found: Error: Can't resolve 'dustjs-helpers' in '/Users/erickim/Develop/front/react/glfm-cms/node_modules/consolidate/lib' @ ./~/consolidate/lib/consolidate.js 362:35-60 @ ./~/consolidate/index.js @ ./~/koa-views/src/index.js @ ./app/server/infrastructure/middlewares/views.js @ ./app/server/infrastructure/middlewares/index.js @ ./app/server/server.js @ multi babel-polyfill ./app/server/server.js
i am exact same issue how to solve this any idea..
?