Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Script tag helper is looking the wrong directory #600

Closed
rmfarrell opened this issue May 27, 2018 · 2 comments
Closed

Script tag helper is looking the wrong directory #600

rmfarrell opened this issue May 27, 2018 · 2 comments
Assignees
Labels

Comments

@rmfarrell
Copy link

Problem

Script tags are unable to be loaded. It looks like it's trying to find them in the templates directory?

Replication steps

I have the following in amy collection.liquid file:

{{ 'template.product.js' | asset_url | script_tag }}

I get the following error:

Module build failed: ModuleNotFoundError: Module not found: Error: Can't resolve './template.product.js' in '/Users/ryan/Documents/matchabar/src/templates'
@t-kelly
Copy link
Contributor

t-kelly commented May 28, 2018

@rmfarrell please see #409

You shoudn't need to reference template.product.js directly, it gets added in the automatically generated script-tags.liquid snippet.

@t-kelly t-kelly closed this as completed May 28, 2018
@t-kelly t-kelly self-assigned this May 28, 2018
@lock
Copy link

lock bot commented Oct 26, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants