Skip to content

Cannot assign to read only property 'name' of function 'function Constructor #4

Description

@erictraub

I started getting this error recently. I believe that it is from the library createerror that is a dependency. How can I fix it?

TypeError: Cannot assign to read only property 'name' of function 'function Constructor(messageOrOptionsOrError, preserveError) {
            if (preprocess) {
                va...<omitted>... }'
    at createError (/home/dev/web-node-server/server/node_modules/createerror/lib/createError.js:125:13)
    at Object.<anonymous> (/home/dev/web-node-server/server/node_modules/httperrors/lib/HttpError.js:48:34)
    at Module._compile (module.js:571:32)
    at loader (/home/dev/web-node-server/server/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/dev/web-node-server/server/node_modules/babel-register/lib/node.js:154:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions