Hello, there is no app.js file in my website, but I keep getting this error and it affects the site. Normally, Google Lighthouse gives information about the problem, but this time Google Lighthouse didn't give the any information. What do you recommend?
Thank you
app.js
is the "bundle". It is a concatenation of all your application's files into one.
Try running:
npm run build
and inspect the files generated at the /dist
folder.
The files in the /dist
folders are basically the output webpack produces when it builds your project. app.js
itself, as said, is a concatenation of all your application's files (those written by yourself and maybe some third-party that you imported), after some transformations performed by plugins and webpack itself.
npm run build
, app.js
will be automatically generated by vue. num run build
, and paste your package.json
in the question. You can paste a picture of the folder structure too npm run build
const mysql = require ('mysql');
const connection = mysql.createConnection ({
hôte: «localhost»,
utilisateur:'utilisateur',
mot de passe:'mot de passe',
base de données:'nom de la base de données'
});
connection.connect ((err) => {
if (err) throw err;
console.log ('Connecté!');
});