Closed philippstucki closed 3 years ago
Hey @philippstucki
Thanks for the issue and good catch!
Not having the lodash dependency is for sure an issue which I'll push up a fix for now.
However, lodash should only be needed if your parsing a template file that html-webpack-plugin
is using, which to my understanding does require lodash. Could you tell me what version of html-webpack-plugin
you're app is using?
Hi @harlan-zw
Thanks for the fix. AFAICT next.js does not use html-webpack-plugin. At least it is not installed as a dependency in my project.
When creating a new app using yarn create next-app
html-webpack-plugin is not installed as a dependency.
Let me know if I can assist with more info.
Describe the bug Lodash is used in
src/loaders/transform-template.ts
but it is not listed as a dependency inpackage.json
. When using this plugin w. Next.js like described in the documentation I get this error:To Reproduce Steps to reproduce the behavior:
yarn create next-app
yarn add -D windicss-webpack-plugin
Expected behavior As windicss-webpack-plugin depends on lodash it should also be installed accordingly.