Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(angular2 webpack starter): Uncaught TypeError #203

Closed
cuitianze opened this issue Jan 7, 2016 · 2 comments
Closed

chore(angular2 webpack starter): Uncaught TypeError #203

cuitianze opened this issue Jan 7, 2016 · 2 comments

Comments

@cuitianze
Copy link

when i run npm run server:prod,
error

My demo here: https://github.com/cuitianze/learn-your-ng2

valor-software/ngx-bootstrap#63

@PatrickJS
Copy link
Owner

can you update the prod config

    new DefinePlugin({
      // Environment helpers
      'process.env': {
        'ENV': JSON.stringify(metadata.ENV),
        'NODE_ENV': JSON.stringify(metadata.ENV)
      },
      // TypeScript helpers
      // '__metadata': 'Reflect.metadata',
      // '__decorate': 'Reflect.decorate'
    }),
    new ProvidePlugin({
      '__metadata': 'ts-helper/metadata',
      '__decorate': 'ts-helper/decorate',
      '__awaiter': 'ts-helper/awaiter',
      '__extends': 'ts-helper/extends',
      '__param': 'ts-helper/param',
      'Reflect': 'es7-reflect-metadata/dist/browser'
    }),

@cuitianze
Copy link
Author

Thanks for updating webpack config! @gdi2290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants