Luke
January 12, 2025, 10:40am
1
I have reason to believe this is on one of the more later versions of the CLI, but I’m having issues where I’m unable to load assets (JS/CSS) in while using Vite.
Anybody else encountered this?
Thank you for sharing this context!
If anyone is facing this issue, please share your scenario here:
https://github.com/Shopify/cli/issues/5181
Then we can follow up and fix that issue there.
Thanks again for reporting, Luke!
1 Like
Luke
January 27, 2025, 6:53pm
3
Seems this issue still persists, at this point I’m not sure if it is the CLI or Vite.
opened 06:38PM - 27 Jan 25 UTC
Okay I've just migrated over to Shopify Vite from [Adastra](https://github.com/o… destry/adastra), and I also posted an issue over on the CLI github - https://github.com/Shopify/cli/issues/5181#issuecomment-2586110500
I thought this issue was down to Adastra but I am still encountering the same issues with Shopify Vite, literally just installed it, but getting this:
<img width="977" alt="Image" src="https://github.com/user-attachments/assets/53101e24-0008-44d0-a10f-9fcef2b280c5" />
This is my `vite.config.js`:
```javascript
import { defineConfig } from 'vite';
import shopify from 'vite-plugin-shopify';
import shopifyClean from '@by-association-only/vite-plugin-shopify-clean';
export default defineConfig({
plugins: [
shopify({
sourceCodeDir: 'src'
}),
shopifyClean()
],
build: {
emptyOutDir: false
}
});
```
Also using Shopify CLI `3.74.0`
Am I missing something else here? Everything works fine on `http://127.0.0.1:9292/`