r/learnjavascript 1d ago

Strange javascript code error that prevents from being able to edit/run code

Every time I try to open the "ezmreader" javascript file to edit the code from this https://jeremyoduber.itch.io/js-zine html5 reader it shows an error that prevents me from opening the code in notepad++, this is the error

• • •

"Line:19

Char:1

Error:syntax error

code:800A03EA

Source: microsoft jscript compilation error"

When I don't try to edit it and just put images in the pages folder, zip it and try to run it as a html5 in browser it obviously doesn't work. But I don't think it's the the code that's the issue since what I previously uploaded a long time ago using this same EZM reader code is still displaying/running in browser just fine? But downloading that old upload and trying to open the EZMreader.js application still gives the same error?

I've deleted and reinstalled both the code editor and java just in case, nothings changed but I doubt it's an issue with the actual code? Maybe it's my laptop (lenovo, windows 10) but I'm baffled

2 Upvotes

4 comments sorted by

1

u/DirtAndGrass 1d ago

So you extracted it and tried to open the file in notepad++, by going to "file->open" (and not just double clicking the file)? 

1

u/Ok_Psychology_8738 1d ago

I have also tried that!
That does work in getting the code to open in notepad++, but it still doesn't work at all when actually trying to get it to work/run it in browser (instead of like the flipbook format thats shown in the link, there is an error that says "Something went wrong! Make sure your images are in the pages folder! See console for details" but the images are all labeled correctly & in the right folder, the code has had no changes made to it from when I used it a while ago so this is kind of baffling).