facebook / Rapid

The OpenStreetMap editor driven by open data, AI, and supercharged features
https://rapideditor.org
ISC License
515 stars 91 forks source link

Npm build error #1577

Open Harry-Angel opened 2 weeks ago

Harry-Angel commented 2 weeks ago

Description

After cloning Rapid.git, I run 'npm install' and then run 'npm run all'. But I've got an following error.

//////////////////////////////////////////////// πŸ— Building css... πŸ‘ css built: 367.021ms

@rapideditor/rapid@2.4.2 build:data shx mkdir -p dist/data && node scripts/build_data.js

πŸ— Building data... Error - Cannot read properties of undefined (reading 'hash') copying: data\wayback.json ERROR: "build:data" exited with 1. ERROR: "build" exited with 1. //////////////////////////////////////////////// I used node.js v20.17.

How can I fix this error? Please help me.

Screenshots

No response

Version

2.4.2

What browser are you seeing the problem on? What version are you running?

No response

The OS you're using

Win10

Steps to reproduce

1

The browser URL at the time you encountered the bug

https://github.com/facebook/Rapid/blob/main/CONTRIBUTING.md#setting-up-rapid-locally

The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)

No response

Harry-Angel commented 2 weeks ago

I've solved this problem. I fixed path 'data/' to 'data\' in scripts/build_data.js.

bhousel commented 2 weeks ago

Let’s keep it open for now - my expectation is that our build scripts should work on Windows without needing to be changed.