Skip to content
New issue

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

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

Already on GitHub? # to your account

Issue with registerJsFile() “depends” option #2965

Closed
carlcs opened this issue Jun 6, 2018 · 1 comment
Closed

Issue with registerJsFile() “depends” option #2965

carlcs opened this issue Jun 6, 2018 · 1 comment
Assignees
Labels

Comments

@carlcs
Copy link
Contributor

carlcs commented Jun 6, 2018

Description

When using the depends option, the file doesn’t get output in the HTML. No issue when I remove the option.

$basePath = Craft::getAlias('@config/diy-widget/');
$baseUrl = Craft::$app->getAssetManager()->getPublishedUrl($basePath, true);
Craft::$app->getView()->registerJsFile("{$baseUrl}/countdown.js", [
    'depends' => CpAsset::class
]);

This used to work before 3.0.10

Additional info

  • Craft version: 3.0.10
  • PHP version: 7.1
@brandonkelly
Copy link
Member

Just released 3.0.10.2 with a fix for this.

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

No branches or pull requests

3 participants