Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update handlebars config in server.js. fix #234 #235

Merged
merged 4 commits into from
May 23, 2019

Conversation

micahstubbs
Copy link
Collaborator

@micahstubbs micahstubbs commented May 22, 2019

This PR updates the way that we tell handlebars where to look for the main or base template. It fixes a bug that appears when we try to run blockbuilder on node v12.3.0. (the current latest nodejs).

This PR also unblocks the nice work that @hydrosquall has been doing on in the blockbuilder-search UI repo to update our dependencies there and improve developer experience 😄

fix #234

steps to test

# if you haven't already, first install nvm https://github.com/nvm-sh/nvm
# then install the latest nodejs
nvm install 12.3.0

then

cd blockbuilder
yarn 
yarn buildWatch

# open a new terminal window
cd ../blockbuilder-search
yarn
yarn buildWatch

# open another new terminal window
cd blockbuilder
node server.js

then make sure that both local blockbuilder and local blockbuilder-search render by visiting them in the browser:

http://localhost:8889/
http://localhost:8889/search

@micahstubbs
Copy link
Collaborator Author

before

Screen Shot 2019-05-21 at 10 43 22 PM

@micahstubbs
Copy link
Collaborator Author

after

after-Screen Shot 2019-05-21 at 10 42 48 PM

@pavelloz
Copy link
Contributor

When i tried to yarn, node-sass (in particular fsevents) threw me a lot of weird compiling errors.

It supposed to be fixed in 4.12.0 ( sass/node-sass#2632 ) so i would recommend upgrade of that dependency.

When i changed it to 4.12.0 in package.json and tried again it didnt help, but i dont know how to use yarn - maybe it requires some additional action.

npm install node-sass worked like a charm, yarn add node-sass breaks.

Note: Im using fnm not nvm, but i assume its not a problem :)

@hydrosquall
Copy link
Contributor

hydrosquall commented May 22, 2019 via email

Copy link
Owner

@enjalot enjalot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@enjalot enjalot merged commit 618d873 into enjalot:master May 23, 2019
@micahstubbs
Copy link
Collaborator Author

thanks for the reviews @pavelloz @hydrosquall @enjalot 🙏

hopefully @hydrosquall is right and upgrading can resolve this node-sass compiling pain 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no such file main.handlebars with node v12.3.0
4 participants