Closed vollit closed 2 years ago
In case others run into this issue, what was your solution?
As I reported #215 - It might be interesting what happens if you try to require
or import
the did-jwt as early as possible in your runtime. Does the error message disappear?
If my assumption at the moment is right, it might be a mixture of timing/memory management of the class/module loader of Node itself. Even if we do not see something like a heap error or a memory dump.
I've encountered this while working with a webpack 4 project.
Reason: Webpack4 uses a version of acorn, that does not support ??
(nullish)
What I had to do was either
??
https://github.com/OnurGvnc/acorn-with-stage3
(^ note, to resolve this particular issue, you could also resolve to the latest version of acorn)I had the same Dev Project in two different folders. Both had the same code. However, the initial npm i
(to get the same dependencies from package.json). One copy works - the other not.
Versions:
After installing did-jwt-vc, it keeps giving this error after importing. Can someone explain what this means? It looks like he doesn't like the nullish-coalescing-operator.
I could not find an issue that looks like this, except an issue where it is a issue with React scripts, but this doesn't work.