This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Bad gateway error #290
Answered
by
pickaxe828
pickaxe828
asked this question in
Help
-
I was using https://web.deta.sh/studio to code Code import express from "express"
import { Deta } from "deta"
const deta = Deta("project key") // Replaced to real key in my code
const db = deta.Base("visits")
const app = express()
app.get("/", (req, res) => {
res.send("Welcome to the backend of Pickaxe's F3 project!")
})
// export "app"
module.exports = app
{
"type": "module",
"dependencies": {
"deta": "^1.1.0",
"express": "^4.18.1"
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
pickaxe828
Jun 24, 2022
Replies: 1 comment
-
Update: The problem is fixed by changing the import to require and remove |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pickaxe828
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: The problem is fixed by changing the import to require and remove
"type": "module"