Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I get an error
Error [ERR_REQUIRE_ESM]: require() of ES Module .keystone\config.jswhen runkeystone postinstallpackage.json
{ "scripts": { "dev": "npm run server:dev", "prod": "npm run build && npm run server:prod", "build": "vite build", "server": "node --loader ts-node/esm ./server/index.ts", "server:dev": "npm run server", "server:prod": "cross-env NODE_ENV=production npm run server", "postinstall": "keystone postinstall" }, "dependencies": { "@keystone-6/auth": "^7.0.2", "@keystone-6/core": "^5.5.1", "@prisma/client": "^5.3.1", "@types/compression": "^1.7.2", "@types/express": "^4.17.17", "@types/node": "^20.4.10", "@vitejs/plugin-vue": "^4.2.3", "@vue/compiler-sfc": "^3.3.4", "@vue/server-renderer": "^3.3.4", "compression": "^1.7.4", "cross-env": "^7.0.3", "express": "^4.18.2", "sirv": "^2.0.3", "ts-node": "^10.9.1", "typescript": "^5.1.6", "vite": "^4.4.9", "vite-plugin-ssr": "^0.4.141", "vue": "^3.3.4" }, "type": "module", "devDependencies": { "prisma": "^5.3.1" } }tsconfig.json
{ "compilerOptions": { "strict": true, "module": "ES2020", "target": "ES2020", "moduleResolution": "Bundler", "lib": ["DOM", "DOM.Iterable", "ESNext"], "types": ["vite/client"], "skipLibCheck": true, "esModuleInterop": true }, "ts-node": { "transpileOnly": true, "esm": true, "compilerOptions": { "module": "Node16", "moduleResolution": "Node16" } } }Beta Was this translation helpful? Give feedback.
All reactions