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
[ ] Regression
[x] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
When building a nestjs application on Zeit Now v2, anything that uses require('optional') doesn't work properly.
Due to how the builders work, require never gets transpiled into a webpack compatible require (e.g. __webpack_require__(7394)), so the package isnt found, and optional('type-graphql') (for example) always returns null
Expected behavior
Avoid using the optional package
Minimal reproduction of the problem with instructions
Spin up a zeit now v2 app, using the node-server builder, with now dev
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
When building a nestjs application on Zeit Now v2, anything that uses
require('optional')
doesn't work properly.Due to how the builders work,
require
never gets transpiled into a webpack compatible require (e.g.__webpack_require__(7394)
), so the package isnt found, andoptional('type-graphql')
(for example) always returns nullExpected behavior
Avoid using the optional package
Minimal reproduction of the problem with instructions
Spin up a zeit now v2 app, using the node-server builder, with
now dev
The text was updated successfully, but these errors were encountered: