Mam problem z odpaleniem servera z wyskakującym błędem crbug/1173575, non-JS module files deprecated.
Szukałem problemu w internecie jest coś na stack overflow lecz nie pomogło
https://stackoverflow.com/questions/67191286/crbug-1173575-non-js-module-files-deprecated-chromewebdata-index%EA%9E%89530595551
Tu są pliki
ze wcześniejszym zainstalowaniem
npm init -y
npm install express
server.js
const express = require("express");
const path = require("path");
const app = express();
app.get("/*", (req, res) => {
res.sendFile(path.resolve("frontend", "podroze.html"));
});
app.listen(process.env.PORT || 5060, () => console.log("Server running ...."));
Konsola
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\SDDS\WebstormProjects\untitled1\strona\podstrony\podstrony_podroz> node server.js
Server running ....
Pod spodem projekt i strona localhost:5060