Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Webpack]require.extensions is not supported by webpack. Use a loader instead. #289

Open
kimjuny opened this issue Aug 8, 2017 · 1 comment

Comments

@kimjuny
Copy link

kimjuny commented Aug 8, 2017

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

@im-rihan
Copy link

im-rihan commented Aug 3, 2022

i am exact same issue how to solve this any idea..
webpack config 2022-08-03 at 7 49 28 PM js - re-agent-mobile-app - Visual Studio Code
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants