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

IN18 error while using LocaleProvider #88

Closed
kkalpha opened this issue Oct 31, 2018 · 6 comments
Closed

IN18 error while using LocaleProvider #88

kkalpha opened this issue Oct 31, 2018 · 6 comments
Assignees

Comments

@kkalpha
Copy link

kkalpha commented Oct 31, 2018

Version

0.9.6

Environment

Angular 6, NG Zorro Mobile 0.9.6

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-mobile-start-5slbsk

Steps to reproduce

  1. add proverders: { provide: LOCAL_PROVIDER_TOKEN, useValue: en_US } in AppModule
  2. add import { LOCAL_PROVIDER_TOKEN, en_US } from 'ng-zorro-antd-mobile'; in AppModule
  3. cause import compilation error says: ng-zorro-antd-mobile has not exported member LOCAL_PROVIDER_TOKEN

What is expected?

import successfully

What is actually happening?

cause import compilation error

Other?

@fisherspy
Copy link
Collaborator

please check out the local provider stackblitz demo.

@fisherspy fisherspy self-assigned this Oct 31, 2018
@kkalpha
Copy link
Author

kkalpha commented Oct 31, 2018

please check out the local provider stackblitz demo.

The reproduce steps is based on the stackblitz demo,just added the import statement and provider section, cause error as in step 3

@fisherspy
Copy link
Collaborator

why do you need to add the provider?

@kkalpha
Copy link
Author

kkalpha commented Nov 1, 2018

why do you need to add the provider?
To configuring antd locale text globally.
And I followed this document: http://ng.mobile.ant.design/#/components/locale-provider/en

@fisherspy
Copy link
Collaborator

#96

@fisherspy
Copy link
Collaborator

@kkalpha 0.9.8版本导出了LOCAL_PROVIDER_TOKEN,请验证

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