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
Hi, I would like to use https://github.com/gajus/roarr for logging and it is working fine in dev mode. However, after the app is built, it starts throwing an error on this line:
ReferenceError: require is not defined
at createRoarrInitialGlobalState (file:///***/build/server/chunks/Errors-176529dc.js:12262:39)
at file:///***/build/server/chunks/Errors-176529dc.js:12339:101
at file:///***/server/chunks/Errors-176529dc.js:12359:3
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async Server.init (file:///***/build/server/index.js:2985:22)
at async file:///***/build/handler.js:19023:1
Is this a problem in the library itself, or is there a way to fix it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I would like to use https://github.com/gajus/roarr for logging and it is working fine in dev mode. However, after the app is built, it starts throwing an error on this line:
https://github.com/gajus/roarr/blob/dff8354395c3f77c21aa0292b163489d1de8aa97/src/factories/createRoarrInitialGlobalState.ts#L37
Is this a problem in the library itself, or is there a way to fix it?
Beta Was this translation helpful? Give feedback.
All reactions