katungi / desktop-weather-app-demo

A demo for a Section article about creating desktop application with React.js and electron
48 stars 16 forks source link

Can't start #5

Open robozb opened 1 year ago

robozb commented 1 year ago

npm run start

electron-react-demo@0.1.0 start react-scripts start

node:internal/modules/cjs/loader:537 throw e; ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in C:\Users\Beci\Desktop\ElectronEsReact\desktop-weather-app-demo\node_modules\postcss-safe-parser\node_modules\postcss\package.json at new NodeError (node:internal/errors:393:5) at exportsNotFound (node:internal/modules/esm/resolve:292:10) at packageExportsResolve (node:internal/modules/esm/resolve:628:9) at resolveExports (node:internal/modules/cjs/loader:531:36) at Module._findPath (node:internal/modules/cjs/loader:600:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1012:27) at Module._load (node:internal/modules/cjs/loader:872:27) at Module.require (node:internal/modules/cjs/loader:1092:19) at require (node:internal/modules/cjs/helpers:103:18) at Object. (C:\Users\Beci\Desktop\ElectronEsReact\desktop-weather-app-demo\node_modules\postcss-safe-parser\lib\safe-parser.js:1:17) { code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' }

Node.js v19.1.0

Thanks: Bela

robozb commented 1 year ago

The workaround was: using node 16.18.1 instead of the latest