Skip to content
Sign upLog in
← Back to Community

Web view doesn't work. Gulp

Profile icon
ProgramingGuru

When i run npx gulp command web view window shows following text: Cannot GET /
Does anybody know what could be the problem?

Voters
Profile icon
meichan2
Profile icon
ProgramingGuru
Comments
hotnewtop
Profile icon
[deleted]

I dont know. I would use the following code:

var app = require('express')(); app.get('/', (req, res) => { res.sendFile(__dirname + '/index.html'); });

Then create this file: index.html. And put stuff in the html file. That's how I usually do it.

Profile icon
Coder100

hmm right now it doesn't work at all

Profile icon
Coder100

that path doesn't exist, looking into code rn