Skip to content

__dirname is not defined #360

@amatiasq

Description

@amatiasq

Found this error trying to create a server as explained in README_SERVERS.md

error: Uncaught (in promise) ReferenceError: __dirname is not defined
    at Object.g.ready.r.useBackupModule (https://deno.land/x/[email protected]/dist/browsers/sodium.js:1:943)
    at https://deno.land/x/[email protected]/dist/browsers/sodium.js:1:497208
    at async https://deno.land/x/[email protected]/src/crypto/crypto-driver-sodium.ts:5:1

    info: __dirname global is not available in ES modules.
    hint: Use import.meta.dirname instead.

Related issue:
denosaurs/sodium#4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions