You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 likerequire.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/consolidate/index.js 1:17-45require.extensions is not supported by webpack. Use a loader instead.
@ ./
@ ./~/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/consolidate/index.js 1:17-45require.extensions is not supported by webpack. Use a loader instead.
@ ./
@ ./~/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/consolidate/index.js 1:17-45require.extensions is not supported by webpack. Use a loader instead.
@ ./
@ ./~/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/consolidate/index.js 1:17-45require.extensions is not supported by webpack. Use a loader instead.
@ ./
@ ./~/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/consolidate/index.js 1:17-45require.extensions is not supported by webpack. Use a loader instead.
@ ./
@ ./~/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/consolidate/lib/consolidate.js 297:33-48 325:33-48Module not found: Error: Can't resolve 'jade' in '/Users/erickim/Develop/front/react/glfm-cms/node_modules/consolidate/lib'
@ ./
@ ./
/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/consolidate/lib/consolidate.js 300:35-55 328:35-55Module not found: Error: Can't resolve 'then-jade' in '/Users/erickim/Develop/front/react/glfm-cms/node_modules/consolidate/lib'
@ ./
@ ./
/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/consolidate/lib/consolidate.js 359:33-48Module not found: Error: Can't resolve 'dust' in '/Users/erickim/Develop/front/react/glfm-cms/node_modules/consolidate/lib'
@ ./
@ ./
/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/consolidate/lib/consolidate.js 362:35-60Module not found: Error: Can't resolve 'dustjs-helpers' in '/Users/erickim/Develop/front/react/glfm-cms/node_modules/consolidate/lib'
@ ./
@ ./
/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
The text was updated successfully, but these errors were encountered: