-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Bug] Local dev instructions result in Webpacker error #62
Comments
Did |
Next thing I've tried is
Will install Yarn and try again. |
Tried this next:
|
Next thing I tried:
The Webpack server is running, so open a new terminal tab and try this:
And, I have a login screen! 🥳 🎉 But... 😞 Logging in with the default creds (U: |
I don’t see an As a sanity check, does |
@LouisStAmour : A few comments up, did the NPM and Yarn commands (which aren't in the README) -- which gets past the Webpacker error message, but leads to another issue. Unfortunately, Docker Compose didn't work for me either (filed #61 for that). |
Perhaps this last part is some aggressive CSRF caching? This shows up in the logs:
Also, semi-accidental debugging step: I put an Ngrok server in front of this, and when accessed from HTTPS, I'm able to login. (I also had to add the relevant URL to config.host in development.yml) |
Hello, I am also experiencing this same issue. Did anyone make progress on troubleshooting it? I added some Application trace info below. Will post back if I find anything. Application Trace info is the following: Per the troubleshooting steps listed, I checked the value of compile and they all seem to be set to true. The blank manifest is step 4, may be the cause? |
#73 fixes this issue for me, running via Docker Compose. Thanks! |
Followed the Local development instructions, but on the last step of going to the application in my browser, I got a Webpacker issue.
Steps
(You can basically follow the instructions in the README.md, but for accuracy's sake, placed verbatim what I did on my Mac just in case.)
key-submission
running at127.0.0.1:8000
:git clone git@github.com:CovidShield/server.git && cd server && docker-compose up
nvm install 12.16.3 && nvm use 12.16.3
rbenv install 2.7.1 && rbenv local 2.7.1
brew install mysql openssl
gem install mysql2 -- --with-cflags=\"-I/usr/local/opt/openssl@1.1/include\" --with-ldflags=\"-L/usr/local/opt/openssl@1.1/lib\"
rm -rf mysql-data && mkdir mysql-data && docker run -it --rm -p 3306:3306 --name portal-db -v $PWD/mysql-data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=somepasswordhere -d mysql
database.yml
file (underdefault
):username: root
,password: somepasswordhere
,host: 127.0.0.1
bundle exec rake db:create && bundle exec rake db:setup && bundle exec rake db:seed
KEY_CLAIM_HOST=127.0.0.1:8000 bundle exec rails s
localhost:3000
in browserExpected Result
Portal web application to render a login or admin screen.
Actual Result
Other Thoughts
Probably Webpack isn't installed? I'll try that next, but, if that's it, probably should be mentioned in the dependencies. Also, if Docker Compose works (#61 ), these setup steps aren't required.
The text was updated successfully, but these errors were encountered: