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
When the verbatimModuleSyntax typescript compiler option is set to true, the import of jsonwebtoken raise an error on runtime Cannot read properties of undefined (reading 'from')
In my tsconfig.json file, I extend the @vue/tsconfig/tsconfig.dom.json file. The verbatimModuleSyntax comes from here.
Description
When the
verbatimModuleSyntax
typescript compiler option is set totrue
, the import ofjsonwebtoken
raise an error on runtime Cannot read properties of undefined (reading 'from')In my
tsconfig.json
file, I extend the@vue/tsconfig/tsconfig.dom.json
file. TheverbatimModuleSyntax
comes from here.Reproduction
jsonwebtoken
@types/jsonwebtoken
@vue/tsconfig
librairiesmains.ts
file, addimport { decode } from "jsonwebtoken";
tsconfig.json
file, add"extends": "@vue/tsconfig/tsconfig.dom.json"
npm dev
Environment
package.json
The text was updated successfully, but these errors were encountered: