threejs-webpack-starter
threejs-webpack-starter copied to clipboard
Webpack Dev Server not compatible with node v17+
Out of the box I am getting an error when I run npm run dist. People speculate that it is a problem with node v17+ due to a security hole they fixed (ref: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported)
I do not want to use a legacy version of node, any chance this can get an update for node v18?
Cheers
@llevasseur hey, to fix it just run "npm upgrade"! Hope it works for you!
@llevasseur Try Downgrading Your NodeJS version to 16, it worked for me.
if you already have other projects with higher node version, just download nvm (node version manager) to be able to switch between node versions.
nvm: https://github.com/coreybutler/nvm-windows solution taken from: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
I have fixed this with docker compatibility addition. V14 works perfect with the webpack config in this starter kit. @designcourse please review my PR. It will help others who want to concentrate on Threejs course only :)