Skip to content

[DevTools Bug]: console.log crashes when I enable DevTools on Chrome #24543

Closed
@coolwind0202

Description

@coolwind0202

Website or app

https://github.com/coolwind0202/web/blob/23877f77e23837a007aada5be363d65290571c88/web/src/components/page/members/IndexPage/IndexPage.tsx#L27

Repro steps

For checking whenever my project will work correctly, when I run a command next dev, errors which are shown below occurred.

image

When I pass a first argument which is an object to console.log(), console.error(), console.warn(), I can repro the errors.
for example,

console.log([]);
console.error({});

Before a few days, the errors had never occured.
When I disable DevTools, the errors calm down.

I think, the errors may be caused by the codes which are shown below.

if (inputArgs[0].match(REGEXP)) {

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions