I am a lifelong software developer, and the author of two bestselling courses that reach over 400,000 students in the Zero to Mastery community:
Most recently, I've released:
Node.js NASA Mission Control Final Project
I am a lifelong software developer, and the author of two bestselling courses that reach over 400,000 students in the Zero to Mastery community:
Most recently, I've released:
"server": "npm run watch --prefix server",
"client": "npm start --prefix client",
"watch": "npm run server & npm run client",
I added these three lines of code into my root package.json
and when running npm run watch
in the terminal, only the server comes up and the client won't start. And I have this warning in the chrome:
VM86:5 crbug/1173575, non-JS module files deprecated.
my node version is 18.17.1
Has anyone else faced this problem?
I am working on the Front End production video and after completing all the steps I receive the "Cannot GET / " error after inspecting the element in the browser it says : GET http://localhost:8000/ 404 (Not Found) . I don't have anything else to go on. I have gone through the video 3 times I am not seeing what is causing the issues. THX
i am having troubles populating the destination exo planets am using a versio of node which is encouraging me to use es6 modules not the common js but the issue has been heart breaking i have tried all i knew but its failing some immediate help will be appreciated
Hi Odziem,
I have built the application on docker and cannot see the client page on the 8000 port. Please help me with how to view the client page from docker. However, I can run applications individually on my machine on ports 3000 & 8000.
Getting Error: when hitting URL:
http://192.168.0.106:8000/
Error: ENOENT: no such file or directory, stat '/app/server/public/index.html'
It will be great if you write a docker-compose file for the client & server.
I really appreciate any help you can provide.
Error log :
MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
I am getting this error while running the application in docker container, but working file when running directly in local environment by writing npm run watch in terminal.
the page loads but doesnt display content
Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Object.ai (main.d5cd5a52.js:2:329928)
at t.useState (main.d5cd5a52.js:2:422732)
at main.d5cd5a52.js:2:471593
at oi (2.acf50103.chunk.js:2:164940)
at Wu (2.acf50103.chunk.js:2:217398)
at Pl (2.acf50103.chunk.js:2:204572)
at Sl (2.acf50103.chunk.js:2:204500)
at Ol (2.acf50103.chunk.js:2:204363)
at yl (2.acf50103.chunk.js:2:201329)
at 2.acf50103.chunk.js:2:150708
uu @ react-dom.production.min.js:216
Hello, how are you?
What is your email address?
but issues keep on rising using newer versions of node as it doesnt support old js some help please i have been stuck for days but the majoe issuw is loading data on start up on the front end here is my planets.model.mjs
import path from 'path';
import fs from 'fs';
import { parse } from 'csv-parse';
const __filename = new URL(import.meta.url).pathname;
const __dirname = path.dirname(__filename);
let habitablePlanets = [];
function isHabitablePlanet(planet) {
return (
planet['koi_disposition'] === 'CONFIRMED' &&
planet['koi_insol'] > 0.36 &&
planet['koi_insol'] < 1.11 &&
planet['koi_prad'] < 1.6
);
}
async function loadPlanetsData() {
return new Promise((resolve, reject) => {
fs.createReadStream(path.join(__dirname, '..', '..', 'data', 'kepler_data.csv'))
.pipe(
parse({
comment: '#',
columns: true,
})
)
.on('data', (data) => {
if (isHabitablePlanet(data)) {
habitablePlanets.push(data);
}
})
.on('error', (err) => {
console.log(err);
reject(err);
})
.on('end', () => {
console.log(${habitablePlanets.length} habitable planets found!
);
resolve();
});
});
}
export { loadPlanetsData };
export const planets = habitablePlanets; my server runs perfectly but when i run it in the browser on my localhost aam told i cannot get
node:internal/process/promises:265
triggerUncaughtException(err, true /* fromPromise */);
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "undefined".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Cannot run the project as the ./server/public folder is hiddden and BUILD_PATH is not recognized as internal or external command
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.