You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
I downloaded the js file and put it in the scripts folder, then tried to import it in the theme.js but it doesnt work as that is not a module.
Then I also tried to put the js file in the static folder and load it in the theme.liquid: {{ 'svg4everybody.min.js' | asset_url | script_tag }}
which gives me the error: ERROR in ./layout/theme.liquid Module not found: Error: Can't resolve './svg4everybody.min.js' in '/home/zinoo/Programming/2018/knothome/knot-home-template/src/layout' @ ./layout/theme.liquid @ . sync ^\.\/layout.*\.liquid$ @ ../node_modules/@shopify/slate-tools/tools/webpack/static-files-glob.js @ multi ../node_modules/@shopify/slate-tools/tools/webpack/hot-client.js ../node_modules/@shopify/slate-tools/tools/webpack/static-files-glob.js
Would be very gratefull for any kind of help.
The text was updated successfully, but these errors were encountered:
Problem
*I can not find any way to use SVG 4 Everybody in my theme.
Replication steps
I downloaded the js file and put it in the scripts folder, then tried to import it in the theme.js but it doesnt work as that is not a module.
Then I also tried to put the js file in the static folder and load it in the theme.liquid:
{{ 'svg4everybody.min.js' | asset_url | script_tag }}
which gives me the error:
ERROR in ./layout/theme.liquid Module not found: Error: Can't resolve './svg4everybody.min.js' in '/home/zinoo/Programming/2018/knothome/knot-home-template/src/layout' @ ./layout/theme.liquid @ . sync ^\.\/layout.*\.liquid$ @ ../node_modules/@shopify/slate-tools/tools/webpack/static-files-glob.js @ multi ../node_modules/@shopify/slate-tools/tools/webpack/hot-client.js ../node_modules/@shopify/slate-tools/tools/webpack/static-files-glob.js
Would be very gratefull for any kind of help.
The text was updated successfully, but these errors were encountered: