Closed mschipperheyn closed 5 years ago
This library is distrbuted in uncompiled state and generates the following error when used:
node_modules/graphql-auth/index.js:1 (function (exports, require, module, __filename, __dirname) { export class ContextError extends Error { ^^^^^^ SyntaxError: Unexpected token export at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:617:28)
Presumably this can be resolved by implementing
[`@babel/preset-env`, { modules: true, node: 'current' }]
But it's generally not recommended to distribute libraries this way.
It should have been compiled. It's fixed now!
@mschipperheyn can you confirm it's working now?
@mschipperheyn ??
Thanks! I will have a go
This library is distrbuted in uncompiled state and generates the following error when used:
Presumably this can be resolved by implementing
But it's generally not recommended to distribute libraries this way.