iTwin / viewer

Monorepo that contains the iTwin Viewer npm packages and their related packages
MIT License
25 stars 16 forks source link

cra templates open ssl error with react-scripts@4 #230

Closed yashincontrol closed 1 year ago

yashincontrol commented 1 year ago

Created an iModel according to https://developer.bentley.com/tutorials/web-application-quick-start/ and was getting the following error: "error:0308010C:digital envelope routines::unsupported". Upon changing"start": "react-scripts --max_old_space_size=4096 start" to "start": "react-scripts --max_old_space_size=4096 --openssl-legacy-provider start" in package.json I was able to npm start and view the iModel.

ben-polinsky commented 1 year ago

@aruniverse know anyone who came across this? @yashincontrol was using node 18.x...

aruniverse commented 1 year ago

Gah. This is probably an OpenSSL issue. Node 18 moved to OpenSSL 3, see.

Thanks for reporting this; need to see what can be done at the react-scripts level, if anything

aruniverse commented 1 year ago

This appears to only be an issue with react-scripts@4, and its been fixed in @5. Will update the templates to use v5