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
node_modules/@uswitch/koa-access/build/koa-access.js references babel-runtime/regenerator but babel-runtime is not a dependency. Possibly the build process is broken.
Running on node v12.16.2 with npm v6.14.4.
The text was updated successfully, but these errors were encountered:
Hi there @aadityabhatia this is probably an oversight due to the way we have used these packages historically. Do you mind showing us your build process for this?
We'll take a look as to how we can remove that dependency and transpile something appropriate.
I did not build the package. I installed it from npm and used require to reference it from my code. The following is the simplest way to reproduce the issue.
$ npm i koa @uswitch/koa-access
+ koa@2.11.0
+ @uswitch/koa-access@2.4.5
added 44 packages from 24 contributors and audited 58 packages in 2.369s
found 0 vulnerabilities
$ echo "require('@uswitch/koa-access');" > server.js
$ node server.js
internal/modules/cjs/loader.js:983
throw err;
^
Error: Cannot find module 'babel-runtime/regenerator'
Require stack:
- /tmp/tmp.xO0KjUPcu6/node_modules/@uswitch/koa-access/build/koa-access.js
- /tmp/tmp.xO0KjUPcu6/server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Module.require (internal/modules/cjs/loader.js:1042:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/tmp/tmp.xO0KjUPcu6/node_modules/@uswitch/koa-access/build/koa-access.js:8:20)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1042:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/tmp/tmp.xO0KjUPcu6/node_modules/@uswitch/koa-access/build/koa-access.js',
'/tmp/tmp.xO0KjUPcu6/server.js'
]
}
Installed
koa-access
by runningnpm install @uswitch/koa-access
. Addingrequire('@uswitch/koa-access')
to my code results in the following error:node_modules/@uswitch/koa-access/build/koa-access.js
referencesbabel-runtime/regenerator
butbabel-runtime
is not a dependency. Possibly the build process is broken.Running on node v12.16.2 with npm v6.14.4.
The text was updated successfully, but these errors were encountered: