PROBLEM WITH THE CODE HELP ME

public/pages/c1dmp.js: Expecting Unicode escape sequence \uXXXX (1:1) > 1 | // For full API documentation, including code examples, visit http://wix.to/94BuAAs | ^ 2 | 3 | $w.onReady(function () { 4 | //TODO: write your page related code here…Loading the code for the HOME page. To debug this code, open c1dmp.js in Developer Tools.There was an error in your scriptTypeError: n is not a function

What i suppost to do?please help me

1 Like

Hi,

you may have some invalid characters in your code file. You may just delete all of the contents and start a new. If you already have some code, I can also check it for you. Please share the editor link in that case.

Thanks!

I often get the same problem :frowning:

Sometimes just rewriting the code line’s content under it and deleting the faulty one fixes the problem… other times NOT :frowning:

Another error I often get is with import wixData from ‘wix-data’;

ESLint failed to validate this file because an error occured unknown character at position “x” (where position x is a number which I guess is in that faulty line.

But what I don’t understand is that I SIMPLY copy and paste import wixData from ‘wix-data’;

How can an error slide into a pasted line???

Thanks in advance for any help.

That can happen when copying and pasting from sources that use different encodings or tend to replace characters based on locale. For example in some locales text editors replace regular quotes (‘’ or “”) with locale specific ones (ex in English quotes could be replaced with ‘’). When copying from such source, the quotes may look almost identical to the generic quotes, but they are actually different symbols and JavaScript will not understand them as being start and end of the string.

It should not happen when pasting from and to Wix Code IDE, but it can happen when pasting from other sources like web pages, Word documents, slides, etc.

If it does happen when pasting code from one file to another when using Wix Code IDE, let us know.

what about copying from here (the forum) to the editor?

That can happen, especially if code is not in a code block.

Thank you for all the answers! This is the editor link https://editor.wix.com/html/editor/web/renderer/edit/e92b092b-79b3-40a3-8aa7-97f0a4dfa647?metaSiteId=91e5e0a3-9e01-4878-8769-6eb4752d49e6&editorSessionId=F5301945-35CC-4F7B-83CB-70092C078707

I hope i dont have to do everything again because i took a lot of time

All,

I have the same issue. i am trying escape a forward slash as below

       console.log(results.items[0].productOptions.BP **\/** BP2.choices[0].value) 

BP/PB2 is not supported and cannot figure out how to escape forward slash in this type of path

Me too- the exact same issue and I’ve been Googling this for almost an hour. It’s the only issue that’s stopping my code from running correctly too. HOW DO YOU ESCAPE THE FORWARD SLASH IN WIX CODE?

https://www.wix.com/code/home/forum/community-discussion/wix-http-function-how-to-escape-forward-slash

Thanks but that 's a link to a link to a different topic.

Does anyone know HOW TO DIVIDE ONE NUMBER BY ANOTHER IN WIX CODE WITHOUT THE OPERAND GETTING MISINTERPRETTED BY THE CORVID AS A COMMENT SLASH??

https://www.w3schools.com/js/js_arithmetic.asp
https://www.digitalocean.com/community/tutorials/how-to-do-math-in-javascript-with-operators

https://support.wix.com/en/article/corvid-tutorial-calculating-and-displaying-collection-data

Does GOS keep posting the wrong topic or is that just me?

I have a problem with the contact form. It doesn´t send he message. After I clic “snd” appears a message that says The message couldné be sent due to a temporal problem. Try it again latter.
And in the code section appears this:
Running the code for the Registro a sesión de grupo page. To debug this code in your browser’s dev tools, open awko7.js.
There was an error in your script
ReferenceError: me is not defined
Someone can help me please?

Please open your own post, instead of bumping up old ones.

Sorry