C:\Users\Hello\hello_app\node_modules\webpack-core\lib\LoadersList.js:60
throw new Error("Element from loaders list should have one of the fields 'loader' or 'loaders'");
^
Error: Element from loaders list should have one of the fields 'loader' or 'loaders'
at getLoadersFromObject (C:\Users\Hello\hello_app\node_modules\webpack-core\lib\LoadersList.js:60:8)
at LoadersList.<anonymous> (C:\Users\Hello\hello_app\node_modules\webpack-core\lib\LoadersList.js:78:12)
at Array.map (<anonymous>)
at LoadersList.match (C:\Users\Hello\hello_app\node_modules\webpack-core\lib\LoadersList.js:70:19)
at C:\Users\Hello\hello_app\node_modules\webpack\lib\NormalModuleFactory.js:111:68
at C:\Users\Hello\hello_app\node_modules\async\lib\async.js:726:13
at C:\Users\Hello\hello_app\node_modules\async\lib\async.js:52:16
at done (C:\Users\Hello\hello_app\node_modules\async\lib\async.js:246:17)
at C:\Users\Hello\hello_app\node_modules\async\lib\async.js:44:16
at C:\Users\Hello\hello_app\node_modules\async\lib\async.js:723:17
Hi peeps! I am having a few issues with Heroku :( I am deploying a Node application - a web scraper
Here are the logs: https://dpaste.org/3AkR
Can anyone ascertain the issue? The build process was fine and the node app starts running, but then for some reason heroku returns a 503 error.
I am guessing there is some issue with the heroku.yml file?
Heroku deploys automatically from the master branch of this repo: https://github.com/RS357/retail-url-scraper
hi all, would you say this is a 'trivial' app, as opposed to one that might persuade a hiring manager that I'd be a good person for a junior dev role?
https://github.com/RS357/retail-url-scraper <- code
https://retail-url-scraper.herokuapp.com/site-urls/dell.com <- deployed app ( select a site by using following URL format - insert hostname without 'www': https://retail-url-scraper.herokuapp.com/site-urls/[hostname])
Google Map Perimeter Drawing
Hi, how can I create a map that behaves like redfin or zillow? on web app https://www.redfin.com/city/3879/OH/Cincinnati/filter/include=forsale+mlsfsbo+construction .....it draws a line around the city when the user searches the city
https://www.zillow.com/homes/Los-Angeles,-CA_rb/
please advise
const router = require('express').Router();
const User = require('../model/User')
router.post('/register',async (req,res)=>{
console.log("entered")
const user = new User ({
name:req.body.name,
email:req.body.email,
password:req.body.password
})
try{
console.log("try")
const savedUser = await user.save();
console.log("got",savedUser)
res.send(savedUser)
}catch(err){
res.status(400).send(err)
}
})
router.post(
'/new', function (req, res) {
res.send('POST request to the auth homepage')
})
router.post(
'/', function (req, res) {
res.send('POST request to the auth homepage')
})
module.exports = router;
try{
console.log("try")
const savedUser = await user.save();
console.log("got",savedUser)
res.send(savedUser)
password:req.body.password
})
try{
user.save()
.then(result=>{
console.log(result);
res.send(result)
}).catch(err=>{
console.log(err);
res.status(400).send(err)
})