Syntax error on imported file in JavaScript #132155
Unanswered
bammarks
asked this question in
Programming Help
Replies: 3 comments 2 replies
-
Hello, @bammarks This is how you can fix this problem. Definitely the bug is in the new_script.js file, and it can be a syntax error..
due to, the error message doesn't provide a specific code line where the error is exists, you have to find it yourself. Example: The error here is the double dot, removing it will fix problem. let obj = {
key: 'value'
};
console.log(obj..key); I hope this will help you much... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the help!
…On Sun, Jul 14, 2024 at 12:50 Dulanga Dasanayake ***@***.***> wrote:
Hello, @bammarks <https://github.com/bammarks>
This is how you can fix this problem.
Definitely the bug is in the new_script.js file, and it can be a syntax
error..
Check these things,
Missing or extra dots in the code.
Misplaced punctuations like commas, semicolons, or parentheses.
Unfinished code statements.
due to, the error message doesn't provide a specific code line where the
error is exists,
you have to find it yourself.
Example:
let obj = {
key: 'value'
};
console.log(obj..key); <--the error here is the double dot, removing it
will fix problem.
I hope this will help you much...
—
Reply to this email directly, view it on GitHub
<#132155 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJ273S3H7ZF2E75RT7UI243ZMLI77AVCNFSM6AAAAABK3K7ZHSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMBUGUZDGNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I tried correcting all syntax errors and ran it though 4 correction AI’s, I
talked with a couple other people and am getting it figured out right now.
your answer is good but it didn’t solve my problem.
…On Mon, Jul 15, 2024 at 15:01 Dulanga Dasanayake ***@***.***> wrote:
Hello, @bammarks <https://github.com/bammarks>
If my answer is useful, can you please mark it as a answer..
Thanks you very much..
Dulanga..
—
Reply to this email directly, view it on GitHub
<#132155 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJ273S3KV2ZG2DZQWWRX3YLZMRBDVAVCNFSM6AAAAABK3K7ZHSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMBVGU4DQMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
I'm trying to code a JavaScript project that reads the block counts and composition out of a Minecraft chunk through the region file and I keep getting this specific error and cant debug it, can someone tell me what the error is specifying and how i could possibly fix it? thanks.
Error: C:\Program Files\nodejs\node.exe .\new_script.js
Uncaught SyntaxError SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Module._load (internal/modules/cjs/loader.js:585:3)
at Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Process exited with code 1
heres a copy of the script: script copy.txt
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions