Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Error when build prod #9

Closed
oscarpedrero opened this issue Apr 15, 2018 · 3 comments
Closed

Error when build prod #9

oscarpedrero opened this issue Apr 15, 2018 · 3 comments

Comments

@oscarpedrero
Copy link

oscarpedrero commented Apr 15, 2018

When run npm run build --prod --environment prod i have this error:

[ERROR in : Unexpected value 'SatNativeDateModule in /xxx/xxx/xxx/xxxx/node_modules/saturn-datepicker/datetime/index.d.ts' imported by the module 'AppModule in /xxx/xxx/xxx/xxxx/src/app/app.module.ts'. Please add a @NgModule annotation.](url)

Can you help me?

@SaturnTeam
Copy link
Owner

Yeah. Use source code instead (two folders from /src). I know about this problem. I'm waiting for angular 6 and while ng-packagr will work with it.

@oscarpedrero
Copy link
Author

Ok, copy datetime y datepicker folder to src, right?

Import SatNativeDateModule from this directory?

Thks for your support!

@SaturnTeam
Copy link
Owner

Yep

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

No branches or pull requests

2 participants