Skip to content

Random crash  #229

Description

@malj
  • Webpack Version: 5.47.9
  • Operating System (or Browser): Ubuntu 20.04.2 (WSL 2)
  • Node Version: 16.6.0
  • webpack-plugin-serve Version: 1.5.0

How Do We Reproduce?

Run Webpack CLI in watch mode with the following config:

new ServePlugin({
    progress: "minimal",
    host: "localhost",
    hmr: "refresh-on-failure",
})

Expected Behavior

No crashes

Actual Behavior

Webpack process randomly crashes after a while (cca 15 minutes on my machine with Intel i7-8750H and 32 GB RAM) with the following console output:

[webpack-cli] TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at stringify (/path/to/my/project/node_modules/json-stringify-safe/stringify.js:5:15)
    at prep (/path/to/my/project/node_modules/webpack-plugin-serve/lib/routes.js:15:24)
    at WebpackPluginServe.<anonymous> (/path/to/my/project/node_modules/webpack-plugin-serve/lib/routes.js:103:58)
    at WebpackPluginServe.emit (node:events:406:35)
    at WebpackPluginServe.emit (/path/to/my/project/node_modules/webpack-plugin-serve/lib/index.js:158:13)
    at /path/to/my/project/node_modules/webpack-plugin-serve/lib/index.js:210:35
    at Hook.eval [as callAsync] (eval at create (/path/to/my/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:42:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/path/to/my/project/node_modules/tapable/lib/Hook.js:18:14)
    at Watching._done (/path/to/my/project/node_modules/webpack/lib/Watching.js:273:28)

Related issues:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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