Comments (5)
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.
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.
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.
@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.
@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
- Make CA and issue SSL cert
packer ssl:make
- Confirm it was created
packer ssl:check
- Follow MacOS instructions to trust the CA
MacOS - trust ca
- Click the CA cert file
ca.crt
located in~/.localhost_ssl
- Click add
- Find it in Keychain Access and double click it
- Expand 'Trust' and change 'When using this certificate' to 'Always trust'
- You may be prompted to authenticate
- Restart packer
- Restart browser
from shopify-packer.
Related Issues (20)
- [FEAT] script-tags for pages HOT 1
- Question: Using section scripts? HOT 1
- [BUG] ERROR in Conflict: Multiple assets emit different content to the same filename HOT 2
- [BUG] Style-tags.liquid not loading product.css
- [FEAT] Shopify CLI to replace theme kit HOT 10
- [BUG] Packer Build - Conflict: Multiple assets emit different content to the same filename HOT 2
- [BUG] Packer is not accepting Themekit access App Password HOT 2
- z-index values are getting flattened to 1 or 2. Does anyone know which of css-loader, style-loader, sass-loader, and postcss-loader could be responsible for this? HOT 2
- [BUG-Critical] packer build keeps failing on node enviroment HOT 1
- Facing issue HOT 3
- Packer works with NVM, but not with Volta. Issues with various webpack loaders when installed through Volta HOT 1
- [BUG] style.css.liquid in assets breaks watcher HOT 1
- Assertion failed: (thread_id_key != 0x7777), function find_thread_id_key, file coroutine.cc, line 134.[BUG] HOT 4
- [BUG] Chalk v5 does not allow 'require' breaking new installations HOT 5
- [BUG] packer start isn't updating the changes on the dev theme.. HOT 2
- [Bug] `packer start` : have it watch and upload all changed files, not just *some* HOT 1
- Global installation of packer fails on installation of @shopify/themekit [BUG] HOT 1
- [BUG] Cannot change theme source styles directory
- Conflicting name with Hashicorp's Packer
- [BUG] Cannot GET / - https://127.0.0.1:3001/ doesn't work + Packer start doesn't watch SCSS changes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopify-packer.