You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
affected runtime is: Node.js 15.2.0 and Node.js 14.15.0 tested
Additional context
Perhaps if the ESM module files were exported with a .mjs extension it would work as expected? I'm not sure what the right answer is for modules exporting both CJS and ESM.
the bug is happening on latest jose too.
i have searched the issues tracker on github for similar issues and couldn't find anything related.
The text was updated successfully, but these errors were encountered:
Not fixed. How I can import this module? I can figure out.
import { JWKS } from 'jose';
import generateSecret from 'jose/util/generate_secret';
Unable to resolve path to module...
@panva We could also have an example with how generate HS256 in keysets? like this
I trying this (but module doesn't load... :/ keystore.add(await generateSecret('HS256'));
Describe the bug
Importing a module from this package inside of an ESM enabled package results in an Error.
To Reproduce
I have a gist here: https://gist.github.com/ksmithut/d5f787fa0eca67295c5d360054fccf82
You can clone it and run it:
Code to reproduce the behaviour:
Expected behaviour
To import the module in an ESM environment.
Environment:
jose
version: v3.0.1Additional context
Perhaps if the ESM module files were exported with a
.mjs
extension it would work as expected? I'm not sure what the right answer is for modules exporting both CJS and ESM.jose
too.The text was updated successfully, but these errors were encountered: