soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Uncaught SyntaxError: Identifier '' has already been declared #3414

Open squidsourcedev opened 1 year ago

squidsourcedev commented 1 year ago

Any bug report that doesn't include a Sandbox link or replication steps will be closed. If you can't provide these pieces of information, we're happy to help you via our official support channel instead: https://oxygenbuilder.com/support. You need to select "Something's broken and I need help" from the dropdown box on the left.

Describe the bug A clear and concise description of what the bug is. Any variable declared no matter what name I use gets hit with the Uncaught SyntaxError: Identifier '' has already been declared

A link to a Sandbox site where the bug has been reproduced https://oxygenbuilder.com/try? (REQUIRED) Provide the link to a Sandbox install where the issue is present. If the issue only exists on a specific post or template, provide a direct link to that post or template.

Sandbox Url: https://oxygen-qsfkbh2lp9z8.oxygen-demo.qsandbox.org/about-me/?ct_builder=true&ct_inner=true

IF YOU CAN'T PROVIDE A SANDBOX REPRODUCTION: Steps required to reproduce the bug: Steps to reproduce the behavior:

  1. Go to 'Any page and click edit with Oxyen'
  2. Click on 'Add a new code block'
  3. Choose Javascript
  4. Enter any simple queryselector and assign to a variable for example const asdfasdfasdfasdf= document.querySelector('.oxy-dynamic-list'); I'm using a ridicoulous variable name like asdfasdfasdfasdf so we can be sure this hasn't been declared before
  5. Open console and see error

image

If you can't fill out the above information, you should not be filing a bug report. Instead, contact us via https://oxygenbuilder.com/support with the details you have and we'll investigate your issue further.

Kpudlo commented 11 months ago

Replicated and reported internally via https://github.com/soflyy/oxygen/issues/3629