• Resolved dpswayne

    (@dpswayne)


    I keep getting this console error “Uncaught SyntaxError: Cannot use import statement outside a module” relating to the Gutenberg plug-in.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Felipe Santos

    (@foosantos)

    Hi there, do you get this error on specific blocks?

    Also, if you try with only Gutenberg active (no other plugins), do you still get this error?

    Thread Starter dpswayne

    (@dpswayne)

    Hi, thanks for responding. I checked per your advice and then found out the line of code causing the console error is not from your plugin, but rather from Cookie Yes|GDPR Cookie Consent plug-in we use, version 3.2.2. I mistakenly thought it was from Gutenberg because the code specifically referenced Gutenberg. Sorry for the confusion; I notified CookieYes about this. You can see the console error yourself by using a Chrome browser and visiting our page https://deltapacificvalve.com Anyway, thanks for responding and pointing us in the correct direction. Wayne

    Thread Starter dpswayne

    (@dpswayne)

    Hi, I chekced with the developers of the plugin we use and now have found once again, the error is coming from Gutenberg. It seems the line

    import*as e from “@wordpress/interactivity”;

    is the problem and is found in the file navigation.min.js

    You can check our site https://deltapacificvalve.com in a Chrome browser and see the console error. Can you please check to see what’s wrong and how to correct this?

    Thanks, Wayne

    Moderator jordesign

    (@jordesign)

    Hi @dpswayne – does that error still occur when you have all other plugins disabled?

    Thread Starter dpswayne

    (@dpswayne)

    Hi, disabling all the plugins would effectively disable out site. Is there any other way to check. If we enable wordpress debug file, would that help you to identify what’s happening? It seems this error is deactivating the “menu” at top right corner of our site, which is an important element, particularly when viewing our site on phones (i.e. small screens).

    Thread Starter dpswayne

    (@dpswayne)

    We found the problem and it’s not with Gutenberg, so please consider this case closed. Another plugin has a “combine javascript files” feature that has worked for over 2 years for us. It seems a recent update, around middle of April, introduced some bug to this feature, which subsequently caused the console error and broke the “menu” button on out site. Nonetheless, it’s not caused by Gutenberg.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Console Error with Gutenberg plug-in’ is closed to new replies.