Giter Club home page Giter Club logo

Comments (5)

fcisio avatar fcisio commented on June 4, 2024

The last working version that works for me is 1.3.8

My current workflow consists of:

  • packer v1.3.8 (locally)
  • packer v2.0.1 (globally)

Then I use v1.3.8 for dev yarn packer start
And v2.0.1 to deploy packer deploy --nodelete

So less than ideal haha

from shopify-packer.

seeReadCode avatar seeReadCode commented on June 4, 2024

Version 1.3.8 appears to be the last working version for me as well. Also on mac, not sure it's mac specific.

I don't use localhost:3000 typically because I have sites with hard redirects so the localhost proxy always grabs the live theme.

But at /?preview, the styles never appear to load and the CLI constantly reads Compiling. I tried running the blank theme, same result. CSS never loaded. I've overridden all the SSL stuff and tested on Safari and Firefox as well as Chrome.

from shopify-packer.

adrianocr avatar adrianocr commented on June 4, 2024

But at /?preview, the styles never appear to load and the CLI constantly reads Compiling. I tried running the blank theme, same result. CSS never loaded. I've overridden all the SSL stuff and tested on Safari and Firefox as well as Chrome.

I thought it was just me! 1.3.8 is also the one I'm having to use because anything later has issues on my machine.

Ever since Webpack 5 was introduced, CSS and JS don't seem to load. I can confirm that a <script> tag and a tag are being inserted before but the JS doesn't evaluate (even though the JS file(s) do contain code) and the CSS file is blank for whatever reason.

I'm also on macOS so that seems to be the common theme here. Don't really see why that would be an issue though.

from shopify-packer.

hayes0724 avatar hayes0724 commented on June 4, 2024

@adrianocr @seeReadCode @fcisio I think this is a macOS issue with SSL, in v1.3.8 the method for using and creating SSL was changed. I unfortunately don't have a mac to test on so this is taking a while to debug.

from shopify-packer.

hayes0724 avatar hayes0724 commented on June 4, 2024

@adrianocr @seeReadCode @fcisio Just released v2.2.0 which make setting up SSL easier, especially on MacOS.

Updated docs for SSL

Steps to fix after update

  1. Make CA and issue SSL cert packer ssl:make
  2. Confirm it was created packer ssl:check
  3. Follow MacOS instructions to trust the CA

MacOS - trust ca

  1. Click the CA cert file ca.crt located in ~/.localhost_ssl
  2. Click add
  3. Find it in Keychain Access and double click it
  4. Expand 'Trust' and change 'When using this certificate' to 'Always trust'
  5. You may be prompted to authenticate
  6. Restart packer
  7. Restart browser

from shopify-packer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.