question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not adding define('text!... to templates

See original GitHub issue

aurelia-cli 0.18 typescript

sometimes aurelia-cli stops adding define('text!.. to templates but just writes the template itself only into the bundle. unfortinatelly, sofar i’ve no clue why and when that’s happening

eg:

define('text!aurelia-form/component/framework/bootstrap/collection.html', ['module'], function(module) { module.exports = "<template>\n  <require from=\"./../../../attributes\"></require>\n  <require from=\"./form-group\"></require>\n  <form-group element.bind=\"element\" message.bind=\"message\">\n    <form-fields repeat.for=\"model of models\"\n      attributes.bind=\"element.schema.attributes\"\n      model.bind=\"model\"\n      schema.bind=\"schema($index)\">\n    </form-fields>\n  </form-group>\n</template>\n"; });
define('text!aurelia-form/component/framework/bootstrap/conditional.html', ['module'], function(module) { module.exports = "<template>\n  <form-fields\n    schema.bind=\"schema\"\n    model.bind=\"model\">\n  </form-fields>\n</template>\n"; });
define('text!aurelia-form/component/framework/bootstrap/fieldset.html', ['module'], function(module) { module.exports = "<template>\n  <require from=\"./../../../attributes\"></require>\n  <fieldset attributes.bind=\"element.attributes\">\n    <form-fields\n      model.bind=\"value\"\n      schema.bind=\"element.schema\">\n    </form-fields>\n  </fieldset>\n</template>\n"; });
<template>
  <require from="./form-group"></require>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Ullfiscommented, Oct 5, 2016

I tested it with aurelia-materialize-bridge today and now it’s running ok. No more not adding define('text!... problems

aurelia-cli@0.20.1

      {
        "name": "materialize-bundle.js",
        "dependencies": [
          "jquery",
          {
            "name": "materialize-css",
            "path": "../node_modules/materialize-css/dist",
            "main": "js/materialize.amd",
            "deps": [
              "jquery"
            ]
          },
          {
            "name": "aurelia-materialize-bridge",
            "path": "../node_modules/aurelia-materialize-bridge/dist/amd",
            "main": "index",
            "deps": [
              "jquery"
            ],
            "resources": [
              "**/*.{css,html}"
            ]
          }
        ]
      }, 
0reactions
EisenbergEffectcommented, Oct 5, 2016

Excellent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Edit templates - Microsoft Support
Edit or update your built-in or custom templates.
Read more >
Working with message templates - HowTo-Outlook
Working with message templates can be a great way to save some time composing emails or answering repeated requests.
Read more >
text/template - Go Packages - The Go Programming Language
Package template implements data-driven templates for generating textual output.
Read more >
Solved: How do I create a custom template for a descriptio...
Delete the text and click Update. - Click on Edit Default Value and enter the template text you want. - In the next...
Read more >
Using modules in templates - HubSpot Developers
The type_of_module supports V1 HubSpot module names for example: rich_text or raw_html . Additional parameters can be added to the first line of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found