FormidableLabs / FormidableLabs/inspectpack

Bug: Node internals added by webpack can't be found with versions action / DuplicatesPlugin

Open
#147 6 comments 2 reactions 0 assignees View on GitHub
bug high priority verified
Dominant language
TypeScript
Stars
590
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Trying to use this plugin together with VueJS project generated by vue-cli 3.0, but have the following issue: `Missing sources: Expected 126, found 0.` and don't get a list of duplicated resources. When I open my `dist` folder, I see that `source map` generated if it what it means.

What I do wrong?

My `vue.config.js` is following:

```
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
const webpack = require('webpack');
const { DuplicatesPlugin } = require("inspectpack/plugin");

module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
configureWebpack: {
devtool: 'source-map',
plugins: [
new VuetifyLoaderPlugin(),
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
new DuplicatesPlugin({
verbose: true
})
]
},
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: false
}
}
}
```

And full output by `inspectpack` if following

```
Missing sources: Expected 126, found 0.
Found map: {}

Duplicate Sources / Packages - Duplicates found! ⚠️

* Duplicates: Found 105 similar files across 126 code sources (both identical + similar)
accounting for 1370631 bundled bytes.
* Packages: Found 0 packages with 0 resolved, 0 installed, and 0 depended versions.

* Understanding the report: Need help with the details? See:
https://github.com/FormidableLabs/inspectpack/#diagnosing-duplicates
* Fixing bundle duplicates: An introductory guide:
https://github.com/FormidableLabs/inspectpack/#fixing-bundle-duplicates
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.