Skip to content

jose v6 update guide required. #794

@riginoommen

Description

@riginoommen

What happened?

I am using jose import like

import * as jose from "jose";

when I updated to v6 everything is failed please share some insights how to update to v6

Version

v6

Runtime

Node.js

Runtime Details

v20.17.0

Code to reproduce

import * as jose from "jose";


    Details:

    /Users/node_modules/jose/dist/webapi/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export { compactDecrypt } from './jwe/compact/decrypt.js';
                                                                                      ^^^^^^

    SyntaxError: Unexpected token 'export'

    > 1 | import * as jose from "jose";

Required

  • I have searched the issues tracker and discussions for similar topics and couldn't find anything related.
  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions