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
TypeError
Locals is not a constructor
node_modules/rollbar/src/server/rollbar.js:71:
initLocals
node_modules/rollbar/src/server/rollbar.js:47:
new Rollbar
node_modules/rollbar/src/server/rollbar.js:79:
Function.module.exports../node_modules/rollbar/src/server/rollbar.js.Rollbar.init
app/plugins/rollbar.ts:22:
module.exports../app/plugins/rollbar.ts.__webpack_exports__.default
.nuxt/index.js:252:
createApp
.nuxt/server.js:97:
module.exports../.nuxt/server.js.__webpack_export
The reason is that options have not "module" field. Because type not accept "module".
Problem
I wanted to use "Locals".
I called
init
function with bellow options.Then I get errors.
The reason is that options have not "module" field. Because type not accept "module".
index.d.ts descrive as bellow.
Workaround
I found that the code with follows options can be excuted.
suggestion for resolution
rollbar/src/server/rollbar.js:65 should be changed.
This is current code.
suggestion code
If Needed, I can create pull request.
The text was updated successfully, but these errors were encountered: