I upgraded my Remix project from 1.13.0 to 1.18.0.
I've executed npm run build before doing npm run dev.
Now I have this error:
/build/index.js:22
import { Response as Response2 } from "@remix-run/node";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1048:15)
at Module._compile (node:internal/modules/cjs/loader:1083:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
at Module.load (node:internal/modules/cjs/loader:997:32)
at Function.Module._load (node:internal/modules/cjs/loader:838:12)
at Module.require (node:internal/modules/cjs/loader:1021:19)
at require (node:internal/modules/cjs/helpers:103:18)
The only place where I import Response is in the entry.server.tsx file:
import { Response } from "@remix-run/node";
When comparing the current blues stack (which the project was initiated from a old version), I see this is also used.
What should I do?