Skip to content

0.11.0: Error when closing watch mode #144

@stnwk

Description

@stnwk
  • Webpack Version: 4.35.3
  • Operating System (or Browser): macOS latest
  • Node Version: 10.15.2
  • webpack-plugin-serve Version: 0.11.0

Hi :)

I just upgraded from 0.10.0 to 0.11.0 and at first everything seemed to work fine, but when I used CTRL+C to terminate my yarn dev watch mode I got the following error message:

TypeError: Converting circular structure to JSON                                                                   
    at JSON.stringify (<anonymous>)
    at prep (project/node_modules/webpack-plugin-serve/lib/routes.js:14:29)
    at WebpackPluginServe.on (project/node_modules/webpack-plugin-serve/lib/routes.js:102:58)
    at WebpackPluginServe.emit (events.js:194:15)
    at WebpackPluginServe.emit (project/node_modules/webpack-plugin-serve/lib/index.js:146:13)
    at watchClose.tap (project/node_modules/webpack-plugin-serve/lib/index.js:176:36)
    at SyncHook.eval (eval at create (project/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
    at SyncHook.lazyCompileHook (project/node_modules/tapable/lib/Hook.js:154:20)
    at finalCallback (project/node_modules/webpack/lib/Watching.js:187:35)
    at Watching.close (project/node_modules/webpack/lib/Watching.js:206:4)

I think this might be related to this change https://github.com/shellscape/webpack-plugin-serve/pull/138/files#diff-52503f2920dcbf5082edfc5670ede0f1R102 in this PR #138 but I have no clue what it's about or how to fix it.

When I downgraded back to 0.10.0 everything worked again :)

What do you think? Can you help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions