qdouble / angular-webpack-starter

A complete Angular 6 and Webpack 4 starter seed with minimal and full featured branches. Full featured branch includes: Material Design 2 (Bootstrap 4 branch available as well), @ngrx, HMR, DLLs and optional use of Universal for server-side rendering - Supports AOT (offline) compilation, sync and lazy loading. Karma/Protractor for e2e/unit tests.
MIT License
883 stars 181 forks source link

Getting error running Universal out of the box #332

Closed dvaldivia closed 6 years ago

dvaldivia commented 6 years ago

Hi, I just clones the repository and I was able to start the application with yarn start and play with it, however when I tried yarn run universal I get the following error:

PRODUCTION BUILD:  true
AOT:  false
BUILDING UNIVERSAL
  0% compiling
/Users/dvaldivia/angular-webpack-starter/node_modules/script-ext-html-webpack-plugin/lib/plugin.js:50
      compilation.hooks.htmlWebpackPluginAlterAssetTags.tap(PLUGIN, alterAssetTags);
                                                        ^
TypeError: Cannot read property 'tap' of undefined

however yarn run universal:aot does run fine

dewang commented 6 years ago

@dvaldivia I'm getting exactly the same error. Did you have any luck trying to resolve this?

qdouble commented 6 years ago

Should be fixed with my latest commit. I removed the script-ext-html-webpack-plugin as it wasn't really being used anyway.

dewang commented 6 years ago

Cheers. I can confirm that it now works