#Prince Billiam-node-payments
1 messages · Page 1 of 1 (latest)
Hello! Starting up a thead for you
How much debugging/troubleshooting have you already done - are you sure the requests are hitting your server? Are they reaching your server but failing at a specific line? What other details do you have?
I think it's hitting the server? When I navigate to localhost:4242 it gives me a blank page but the page name is correct
I changed the paths to the static files to the client public directory:
app.use(express.static(path.join(__dirname, '..', 'client', 'public')));
app.get('/', (req, res) => {
const filepath = resolve(path.join(__dirname, '..', 'client', 'public', 'index.html'));
res.sendFile(filepath);
});
Sorry, just tried it again and got different errors this time:
And the webpage is only showing the "Payment" text instead of the component:
Have you gone through what the sample code does and confirmed each step works? Also, why are you going to localhost:4242 - with the react-cra client you need to be visiting https://localhost:3000