Npm build error
Harry-Angel opened this issue Β· 2 comments
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
I've solved this problem. I fixed path 'data/' to 'data\' in scripts/build_data.js.
Letβs keep it open for now - my expectation is that our build scripts should work on Windows without needing to be changed.