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.

can-dynamic-import tag breaks auto-reload in the modlet

See original GitHub issue

How often can you reproduce it?

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try

Description: Using <can-dynamic-import> to import a modlet effectively disables the build from watching files in the imported modlet for changes.

Steps to reproduce:

In index.stache we use <can-dynamic-import> to import a myapp/components/footer/ modlet:

<can-dynamic-import from="myapp/components/footer/" isResolved:to="*footerTagReady"></can-dynamic-import>
{{#if *footerTagReady}}
  <my-footer app:from="this"></my-footer>
{{/if}}
  • If changes are made to index.stache, the console rebuilds it automatically:
  • Start from:

screenshot 2017-10-19 13 03 33

  • Make an edit:

screenshot 2017-10-19 13 03 48

  • Notice the console reloads the index.stache, and the website reflects the change:
Reloading myapp@2.0.0#_app/index.stache!done-autorender@1.3.2#no-zone

screenshot 2017-10-19 13 03 53

  • If changes are made to any file in myapp/components/footer/, such as footer.js or footer.stache, new changes are not rebuilt. There is no new console output and the webpage is not updated.

  • Start with the following in myapp/components/footer/footer.stache

screenshot 2017-10-19 13 04 02

  • Make a change, notice that the console does not rebuild the footer component:

screenshot 2017-10-19 13 04 14

  • The website is also not rebuilt and no changes are seen:

screenshot 2017-10-19 13 03 53

  • The changes are only seen after a manual refresh of the browser window.

screenshot 2017-10-19 13 52 35

  • The Console still has not visibly indicated that it has rebuilt the component. Received client connection

Expected results: Using donejs develop in this case, changes to any file in the myapp/components/footer/ directory should be automatically picked up and rebuilt by the console.

Actual results: Using donejs develop in this case, changes to any file in the myapp/components/footer/ directory are no longer automatically picked up and rebuilt by the console.

Environment:

Software Version
donejs -V 1.0.1
node -v 6.11.3
npm -v 5.4.2
Browser Any
Operating system Windows 10

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Psykoralcommented, Nov 8, 2017

Fantastic! You guys rule, as usual. Thanks so much!

0reactions
chasenleharacommented, Nov 9, 2017

This was released in steal 1.5.17

Read more comments on GitHub >

github_iconTop Results From Across the Web

autoreload — IPython 3.2.1 documentation
IPython extension to reload modules before executing user code. autoreload reloads modules automatically before entering the execution of code typed at the ...
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