Thanks to visit codestin.com
Credit goes to github.com

Skip to content

HMR not working in script tags after applying workaround #747

Closed as not planned
@luiguild

Description

@luiguild

Version

2.8.1

Reproduction link

https://github.com/NativeScript/nativescript-app-templates/tree/master/packages/template-blank-vue

Platform and OS info

Android 9/10, iOS 13/14, NativeScript 7.0.13 & Nativescript-Vue 2.8.1, Windows 10, MacOS Catalina

Steps to reproduce

1 - ns create --vue (named project 'test')
2 - cd test
3 - ns run android (with or without --hmr)
4 - anything to follow
4.a - change something in <template> tag
4.b - change something in <script> tag (with or without lang="ts")
4.c - change something in <style> tag (using any lang="X")

What is expected?

1 - In any .vue files, the HRM just reload the screen
2 - In any .js imported files, reload the entire app
3 - In any .sass/scss/css imported files, reload the entire app

What is actually happening?

Anything that you do, reload the entire app and in some cases in iOS nothing happen...


HRM it's a dream that was selled to community that love the NatvieScript idea, but personally I don't know nobody that can use minimally this feature... It's a HUGE thing that in my vision need to be carefully shared with the community and I can help with something if you can help me to understanding why this was not resolved in our platform yet.

What is even more curious to me is that if you run the same project created from scratch, using ns preview and open it in the Playground app, you will be able to use all the amazing features of HRM.

Sorry for the outburst, I have been working on this for several months, but until today I have not been able to reach a viable conclusion and I can't admit that we cannot resolve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions