Problem with "Cannot find module './dist/bcrypt.js'"

I have a problème when i try to deploy my projet.

I use node.js and in my “index.js” i added

app.use(express.static(path.join(__dirname, ‘/client/dist’)));

app.get(‘*’, (req, res) => {
res.sendFile(path.join(__dirname, ‘client’, ‘dist’, ‘index.html’));

and in my package.js i added

“scripts”: {
“dev”: “nodemon api/index.js”,
“start”: “node api/index.js”,
“build”: “npm install && npm install --prefix client && npm run build --prefix client”

I changed “bcryptjs” to “bcrypt” but nothing changed, so i returned with “bcryptjs”.

Someone can help me?
Thank you verry much


We’re a bit limited in how we can help, as you haven’t provided much information. You’ll need to ensure you can install the dependencies and start your project locally. Also, make sure the Node version on Render matches the one you’re using locally.

Render Support, UTC+3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.