Skip to content

Question: How to fix error Uncaught SyntaxError: Unexpected token o in JSON at position 1 #26509

Description

@longnk-1447

Hi everyone, i have a error as title in nodemodules/prismjs/prism.js line 510

if(!_self.document){if(!_self.addEventListener){// in Node.jsreturn_;}if(!_.disableWorkerMessageHandler){// In worker_self.addEventListener('message',function(evt){varmessage=JSON.parse(evt.data),//This is prism.js 510lang=message.language,code=message.code,immediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang));if(immediateClose){_self.close();}},false);}return_;}

Please, give me any solution!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Type: QuestionIssues that are actually questions and not bug reports.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions