Son TungS
Windmill6mo ago
1 reply
Son Tung

Problem with third party library

Hi, I'm having a problem when try to run a script that pulling third party library. The error message give a hine that i can "Replace window with globalThis". But i don't use any 'window' in my script at all.
{
"error": {
"name": "ExecutionErr",
"message": "exit code for "deno run": 1, last log lines:\nerror: Uncaught (in promise) ReferenceError: window is not defined\n}(window || this, (function () {\n ^\n at https://deno.land/x/deno_moment@v1.1.2/moment-copy-2-24-0.js:12:3\n info: window global is not available in Deno 2.\n hint: Replace window with globalThis.",
"step_id": "b",
"exit_code": 1
}
}
Was this page helpful?