Open kjczarne opened 1 year ago
Same issue observed in: https://github.com/microsoft/onnxruntime-web-demo
@kjczarne I made it work with node v14.17.6
and this package.json
{
"name": "ort-web-template",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"fs": "0.0.1-security",
"jimp": "0.16.1",
"lodash": "4.17.21",
"ndarray": "1.0.19",
"ndarray-ops": "1.2.2",
"next": "11.1.2",
"onnxruntime-web": "1.9.0",
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"node-polyfill-webpack-plugin": "1.1.4",
"copy-webpack-plugin": "9.0.1",
"@types/lodash": "4.14.176",
"@types/react": "17.0.19",
"eslint": "7.32.0",
"eslint-config-next": "11.1.0",
"typescript": "4.4.2"
}
}
Before the fix, we can run with below with node v17 and above
export NODE_OPTIONS=--openssl-legacy-provider; npm run dev
Without any modification to the code distributed in this repo. Steps to reproduce:
yarn
yarn dev
Node.JS v18.12.0
Traceback: