You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var express = require('express')
var app = express()
var PouchDB = require('pouchdb')
app.use('/', require('express-pouchdb')(PouchDB))
app.listen(5000)
var db = new PouchDB('mydb')
db.changes({live: true}).on('change', console.log)
i called in electron background.js
### getting error
ERROR Failed to compile with 1 errors 6:53:42 AM
error in ./node_modules/pouchdb-fauxton/www/index.html
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> <!doctype html>
| <html lang="en">
| <head>
@ ./node_modules/express-pouchdb/lib/routes/fauxton.js 7:32-66
@ ./node_modules/express-pouchdb/lib sync ^\.\/.*$
@ ./node_modules/express-pouchdb/lib/index.js
@ ./backend_db/server.js
@ ./src/background.js
@ multi ./src/background.js
The text was updated successfully, but these errors were encountered:
my server.js fie
i called in electron
background.js
### getting error
The text was updated successfully, but these errors were encountered: