Trying to contribute, but unable to get heart/ts built #328
                  
                    
                      snowe2010
                    
                  
                
                  started this conversation in
                Any-Block & Anytype-Heart
              
            Replies: 1 comment 7 replies
-
| 
         Hello, I've fixed the docs, usually you do not need to make a build for development workflow. You just go into anytype-heart directory, pull required branch or create your own, by default now it's  Regarding protobuf I use  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    7 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The build docs for heart and ts seem to be really really old. https://github.com/anyproto/anytype-heart/blob/develop/docs/Build.md says on mac that a 'recent breakage' on protobuf caused issues and to install protobuf@3. Protobuf 3 in brew has been disabled (https://formulae.brew.sh/formula/protobuf@3) so it's no longer possible to install with brew, and this also seems like a really really old version to install.
anytype-ts has these instructions: https://github.com/anyproto/anytype-ts/tree/main?tab=readme-ov-file#-building-from-source
which state to do a
make buildin anytype-heart, but anytype-heart givesmake: Nothing to be done forbuild'.`anytype-ts also has a dependency on python 3.11, and will fail if built on 3.12, due to a node-gyp dependency on distutils.
Switching to python 3.11, building with signature checking turned off, and then running with
run start:devjust results in a running web server on localhost:8080. Opening that page just results in a blank white page with a browser error:Turns out you need to do
run start:devand you need to do anpm run electronin a different console to actually open the app for testing.Two questions here:
protobuf@3really the correct version to use still? if so contributors are going to have to start building it from source.supplementary questions:
Beta Was this translation helpful? Give feedback.
All reactions