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

Not working with Webpack 5: "TypeError: Cannot create proxy with a non-object as target or handler" #171

Closed
facinick opened this issue May 21, 2021 · 1 comment

Comments

@facinick
Copy link

I am facing performance issues with webpack 5 and happen to land on this issue#comment : webpack/webpack#12102 (comment) where a guy used this plugin to compare webpack5 vs webpack4 speed. For some reason this plugin aint working with my webpack5, here is the error I'm getting:

[webpack-cli] TypeError: Cannot create proxy with a non-object as target or handler
    at new WrappedPlugin (/Users/shriyans/Desktop/work/streaming-frontend-boilerplate/node_modules/speed-measure-webpack-plugin/WrappedPlugin/index.js:280:12)
    at /Users/shriyans/Desktop/work/streaming-frontend-boilerplate/node_modules/speed-measure-webpack-plugin/index.js:57:18
    at Array.map (<anonymous>)
    at SpeedMeasurePlugin.wrap (/Users/shriyans/Desktop/work/streaming-frontend-boilerplate/node_modules/speed-measure-webpack-plugin/index.js:55:69)
    at module.exports (/Users/shriyans/Desktop/work/streaming-frontend-boilerplate/webpack/app.config.js:78:32)
    at /Users/shriyans/Desktop/work/streaming-frontend-boilerplate/node_modules/webpack-cli/lib/webpack-cli.js:1391:43
    at Array.map (<anonymous>)
    at evaluateConfig (/Users/shriyans/Desktop/work/streaming-frontend-boilerplate/node_modules/webpack-cli/lib/webpack-cli.js:1383:24)
    at /Users/shriyans/Desktop/work/streaming-frontend-boilerplate/node_modules/webpack-cli/lib/webpack-cli.js:1414:53
    at async Promise.all (index 0)
error Command failed with exit code 2.

Is it working in webpack 5 for anyone?

@uwolfer
Copy link

uwolfer commented May 31, 2021

See #170, removing '...' helps.

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