Akryum / Akryum/vue-cli-plugin-ssr

Cannot set property of 'removeComments' of undefined when building in development

Open
#102 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
441
Forks
69
PR merge metrics
No merged PRs in 30d

Description

**Issue:**

When running the ssr:build command, the following error is given:

```
TypeError: Cannot set property 'removeComments' of undefined
at webpackConfig.plugin.tap.args (C:\src\Bosun\SmeLending.Ui\node_modules\@akryum\vue-cli-plugin-ssr\lib\webpack.js:47:37)
```

Caused by this line:

` webpackConfig.plugin('html-filter').use(HtmlFilterPlugin)
if (isProd) {
webpackConfig.plugin('html').tap(args => {
args[0].minify.removeComments = false <<<<<<<<<<<<<<<<<
return args
})
}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.