File is not defined #9286
Unanswered
isaacromerop
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just upgraded my remix app to latest. After following all of the steps, now I came across this error message:
My server.ts file looks like this:
`import { createRequestHandler } from "@remix-run/architect";
import { installGlobals } from "@remix-run/node";
import sourceMapSupport from "source-map-support";
import * as build from "@remix-run/dev/server-build";
sourceMapSupport.install();
installGlobals();
export const handler = createRequestHandler({
build,
mode: process.env.NODE_ENV,
});`
remix.config.js looks like this:
`/**
/
module.exports = {
server: "server.ts",
assetsBuildDirectory: "./public/build",
publicPath: "/_static/build/",
serverBuildPath: "server/index.js",
serverMinify: false,
serverModuleFormat: "cjs",
serverPlatform: "node",
serverDependenciesToBundle: [/@nivo//, /d3-*/, "internmap"],
serverNodeBuiltinsPolyfill: {
modules: {},
},
};`
Any help?
Beta Was this translation helpful? Give feedback.
All reactions