vega / editor

Editor/IDE for Vega and Vega-Lite
https://vega.github.io/editor/
BSD 3-Clause "New" or "Revised" License
166 stars 90 forks source link

Issues when using docker-compose to bring project up, does not build #495

Closed aoosapps closed 5 years ago

aoosapps commented 5 years ago

Same error in both master and v0.44.0 1e8ccca release.

editor_1  | ✖ 「wdm」: 
editor_1  | ERROR in ./src/constants/specs.ts
editor_1  | Module not found: Error: Can't resolve '../../public/spec/vega-lite/index.json' in '/usr/src/app/src/constants'
editor_1  |  @ ./src/constants/specs.ts 2:31-80
editor_1  |  @ ./src/constants/index.ts
editor_1  |  @ ./src/reducers/index.ts
editor_1  |  @ ./src/store/configure-store.ts
editor_1  |  @ ./src/index.tsx
editor_1  | 
editor_1  | ERROR in ./src/constants/specs.ts
editor_1  | Module not found: Error: Can't resolve '../../public/spec/vega/index.json' in '/usr/src/app/src/constants'
editor_1  |  @ ./src/constants/specs.ts 1:26-70
editor_1  |  @ ./src/constants/index.ts
editor_1  |  @ ./src/reducers/index.ts
editor_1  |  @ ./src/store/configure-store.ts
editor_1  |  @ ./src/index.tsx
editor_1  | ℹ 「wdm」: Failed to compile.
domoritz commented 5 years ago

Did you run yarn?

domoritz commented 5 years ago

Ahh, I have some local things that make it work. I'm fixing it.

rav1kantsingh commented 4 years ago

How to get ../../public/spec/vega-lite/index.json and ../../public/spec/vega/index.json files. I am also facing this issue. my public/specs folder is empty. @domoritz

domoritz commented 4 years ago

You get them when you run yarn. Does it work?

rav1kantsingh commented 4 years ago
yarn install v1.19.1
[1/4] 🔍  Resolving packages...
success Already up-to-date.
$ yarn vendor && beemo create-config --react
yarn run v1.19.1
$ scripts/vendor.sh
Copying data to 'public/data'.
Copy examples to 'public/spec'.
/tmp ~/Documents/vega/editor
scripts/vendor.sh: line 30: wget: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
(base) ravikantsingh@RavikantSinghs-MacBook-Pro editor % 

I get this error on running yarn and public/specs is empty. I think I need to install wget for it.

rav1kantsingh commented 4 years ago

It is working now after installing wget. Thank you