Hi everyone!
My existing code base (that works fine with nakama server version 3.10.0) breaks if I update the server to 3.12.0
I’m getting the following error now for a specific:
TypeError: Cannot assign to read only property '_getPrototypeOf' at _getPrototypeOf
For my setup, I’m using the typescript runtime with rollup and the following configuration:
import resolve from "@rollup/plugin-node-resolve";
import commonJS from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import babel from "@rollup/plugin-babel";
import typescript from "@rollup/plugin-typescript";
import pkg from "./package.json";
import builtins from "rollup-plugin-node-builtins";
import { defineConfig } from "rollup";
const extensions = [".mjs", ".js", ".ts", ".json"];
export default defineConfig({
input: "./src/index.ts",
external: ["nakama-runtime"],
plugins: [
// Allows node_modules resolution
// throws weird errors, uncommented for now.
resolve({ extensions }),
builtins({ fs: true, builtins: false }),
// Compile TypeScript
typescript(),
json(),
// Resolve CommonJS modules
commonJS({ extensions }),
// Transpile to ES5
babel({
extensions,
babelHelpers: "bundled",
}),
],
output: {
file: pkg.main,
},
});
The error occurs only on one endpoint because that endpoint uses luxon (successor of moment.js) to help me handle dates/timestamps.
Anybody got a clue what I can change to mitigate that error?
Any reason why this now no longer functions as expected?