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
This code block is bombing my rollup build. Not caught during build. This code makes it into the bundle, and then it fails on runtime startup. module.exports.default is undefined and is killing the build.
/path-to-my-build/node_modules/@jsdevtools/ono/esm/index.js:12
module.exports = Object.assign(module.exports.default, module.exports);
^
TypeError: Cannot convert undefined or null to object
I found this by preserving the modules from Rollup so I could get a good stacktrace to the code.
Running into the same issue — as a not-so-great workaround, I used the @rollup/plugin-replace plugin to fix up that patch of code with the changes in #20 and I'm no longer seeing runtime errors:
ono/src/index.ts
Lines 10 to 13 in a1fa89a
This code block is bombing my rollup build. Not caught during build. This code makes it into the bundle, and then it fails on runtime startup.
module.exports.default
is undefined and is killing the build.I found this by preserving the modules from Rollup so I could get a good stacktrace to the code.
I found if i do this it makes it past this part:
The text was updated successfully, but these errors were encountered: