Unlike this one, the import is intentional. I need to use the express module. How can I fix that? I've tried but I couldn't make a sample to reproduce it. So I'm open to guesses on what can be the reason for the error. The error is caused by the import:
import express from 'express'
I also tried:
import {express} from 'express'
neither does work.
the error:
×
TypeError: Cannot read properties of undefined (reading 'prototype')
(anonymous function)
C:/Users/artur/Desktop/merge/editor/node_modules/express/lib/response.js:41
38 | * @public
39 | */
40 |
> 41 | var res = Object.create(http.ServerResponse.prototype)
42 |
43 | /**
44 | * Module exports.
What could be the reason for this error?