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

Module parse failed. #11

Open
B-Esmaili opened this issue Mar 6, 2020 · 0 comments
Open

Module parse failed. #11

B-Esmaili opened this issue Mar 6, 2020 · 0 comments

Comments

@B-Esmaili
Copy link

When i try to use library i end up with following error message :

./node_modules/rn-persian-date-picker/PDP.js 9:5
Module parse failed: Unexpected token (9:5)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import { primaryFontFamily, smallFont } from "./modules";
| 
> type Props = {
|   type: "Jalali" | "Gregorian",
|   pickerConfirmBtnText: string,

apparently you are using typescript inside your module but the extension is .js could you please explain what is the issue?

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

1 participant