Skip to content

Hot reload on angular2 not functional #9

@Mozartted

Description

@Mozartted

Hello,

I've been hooked on this issue for 2 days before I finally decided to open an issue, although it may not be a valid issue related to the project, but please bear with me... thanks

When trying to set up hot reload on a project using the plugin HotModuleReplacementPlugin

plugins: [
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NoErrorsPlugin()
 ],

It renders the following error

/home/mozartted/PROJECTS/javascript/angular2SailsStarterPack/node_modules/sails-webpack/node_modules/webpack/lib/Tem
plate.js:114
                        source.add(moduleTemplate.render(module, dependencyTemplates, chunk));
                                                  ^

TypeError: moduleTemplate.render is not a function
    at /home/mozartted/PROJECTS/javascript/angular2SailsStarterPack/node_modules/sails-webpack/node_modules/webpack/
lib/Template.js:114:30

So I'm trying to fix this issue since the hot-reload is pertinent to the project.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions