-
Notifications
You must be signed in to change notification settings - Fork 364
Unable to include assets from external app v1.x #501
Comments
Hey @et1421! Could you try throwing whatever asset you need into the |
The assets are in the Failed to compile. undefined @ multi ../node_modules/@shopify/slate-tools/tools/webpack/hot-client.js ../node_modules/@shopify/slate-tools/tools/webpack/static-files-glob.js Compiled with warnings. Warning in ./snippets/bold-currency-converter.liquid but with the deploy task, a different problem occurs. I have about the same error ( |
Any update on this? |
I think if you want to reference static files you shoud use: |
Assets have been simplified in #850 and the change is now available in v1.0.0-beta.12 Docs that have also been updated: |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Possibly related: #409 #410
Problem
One app installed in my store (Multi Currency) needs to import some assets inside its snippets files.
But the dist folder seems to be deleted at the moment of compilation. Therefore, the liquid compilation crashes because the asset is inexistant.
The only way to deploy is to put the local link on build (http://localhost:8080/bold-currency-bootstrap.js), and then to go and change the URLs inside Shopify admin.
Replication steps
For example :
<script src="{{ 'bold-currency-bootstrap.js' | asset_url }}" defer></script>
ound bold-currency-converter.liquid snippet crashes the build process.
The text was updated successfully, but these errors were encountered: