Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where error message would not print directive name properly #3572

Merged

Conversation

mattvague
Copy link
Contributor

@mattvague mattvague commented May 12, 2023

Right now if I try to define a custom directive with a non-existent directive in .before() e.g. `Alpine.directive('foo', foo).before('baz') I get the following error:

alpinejs:5 Cannot find directive ${directive}. ${name} will use the default order of execution

Instead of

alpinejs:5 Cannot find directive baz. foo will use the default order of execution

The issue is that the error message is defined using double quotes instead of backticks. This PR fixes the issue and should now print the error correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants