-
After upgrading to Remix v2.0.1 from v1.19.3 and running my application, it crashes with:
I have stream enabled in my /** @type {import('@remix-run/dev').AppConfig} */
export default {
serverDependenciesToBundle: [
"http-proxy",
"sitemap",
"xml",
],
serverMinify: true,
serverModuleFormat: "esm",
serverNodeBuiltinsPolyfill: {
modules: {
stream: true
},
},
}; The relevant parts of my {
"private": true,
"sideEffects": false,
"type": "module",
"scripts": {
"dev": "remix dev --manual -c 'node ./server.js'",
},
"dependencies": {
"@remix-run/css-bundle": "^2.0.1",
"@remix-run/express": "^2.0.1",
"@remix-run/node": "^2.0.1",
"@remix-run/react": "^2.0.1",
"compression": "^1.7.4",
"express": "^4.18.2",
"express-http-proxy": "^1.6.3",
"http-proxy": "^1.18.1",
"isbot": "^3.6.13",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sitemap": "^7.1.1",
"source-map-support": "^0.5.21",
"xml": "^1.0.1"
},
"devDependencies": {
"@remix-run/dev": "^2.0.1",
"@remix-run/eslint-config": "^2.0.1",
"@types/compression": "^1.7.2",
"@types/express": "^4.17.17",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/source-map-support": "^0.5.6",
"@types/xml": "^1.0.9",
"cross-env": "^7.0.3",
"dotenv": "^16.0.3",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
},
"engines": {
"node": ">=18.0.0"
}
} My import { PassThrough } from "stream"; and I have a route that uses this from import { Readable } from "stream"; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Something about library incompatibility regarging |
Beta Was this translation helpful? Give feedback.
Something about library incompatibility regarging
esm
as opposed tocjs
, just going to stick withcjs
.