carbon icon indicating copy to clipboard operation
carbon copied to clipboard

[Toast] Uncaught ReferenceError: global is not defined

Open pbochnak opened this issue 2 years ago • 4 comments

Current behaviour

Currently application is crashed, if we use Toast component: image The console errors appear: image

Expected behaviour

The Toast component is working correctly, without crashing the app, with no console errors.

CodeSandbox or Storybook URL

Can't reproduce on CodeSandbox

JIRA Ticket (Sage Only)

No response

Suggested Solution

No response

Carbon Version

104.53.1

What browsers are you seeing the problem on?

Chrome

What Operating System are you seeing the problem on?

Windows

Anything else we should know?

No response

Confidentiality

  • [X] I confirm there is no confidential or commercially sensitive information included.

pbochnak avatar Mar 14 '22 13:03 pbochnak

Hi @pbochnak-sage, please could you share a codesandbox with us so we can replicate this issue?

Parsium avatar Mar 15 '22 13:03 Parsium

Unfortunately, I can't reproduce it in codesandbox, but I can show you the bug in my application. It's connected with global and @mkrds suggested that you should remove it from your side.

pbochnak avatar Mar 16 '22 17:03 pbochnak

FE-5042

Parsium avatar Mar 17 '22 09:03 Parsium

@pbochnak-sage please could you link us to your project that causes the issue so we can replicate the error. Then we can confirm it is fixed and QA it.

nicktitchmarsh avatar Mar 30 '22 09:03 nicktitchmarsh