angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.13k stars 1.24k forks source link

Initial page doesn't load using babel+sequelize #2745

Closed luizfox closed 6 years ago

luizfox commented 6 years ago
Item Version
generator-angular-fullstack 5.0.0-rc.3
Node 8.11.3
npm 5.6.0
Operating System Windows 10
Item Answer
Transpiler Babel
Markup HTML
CSS SCSS
Router ngRoute
Client Tests Mocha
DB SQL
Auth Y
flow true

yo-rc.zip

I'm not able to generate a single app using all the default answers. If I change just from Babel to TypeScript, it works.

The problem: When I try to access the initial webpage, the title loads, but the only text that loads is

Loading...

and nothing happens. I believe it's a bug.

Awk34 commented 6 years ago
app.bundle.js:1383 Uncaught ReferenceError: exports is not defined
    at Module../client/app/app.constants.js (app.bundle.js:1383)
Awk34 commented 6 years ago

Unfortunately, this is due to a bug in Babel that isn't fixed. I will submit a patch to the generator.

https://github.com/babel/babel/issues/2877

Awk34 commented 6 years ago

See https://github.com/angular-fullstack/generator-angular-fullstack/commit/73d1e29c35b9b215bd17a55e6e5b603e910c7120

luizfox commented 6 years ago

Thanks, @Awk34 . Now it works like a charm!