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

import statement compile error #214

Open
Haseeb710 opened this issue Mar 27, 2020 · 2 comments
Open

import statement compile error #214

Haseeb710 opened this issue Mar 27, 2020 · 2 comments

Comments

@Haseeb710
Copy link

Getting below error after import:

(17,4): An index signature parameter type cannot be a type alias. Consider writing '[key: string]: { message: string; rule: (val: any, params?: any) => boolean; }' instead.

@stuyam
Copy link
Collaborator

stuyam commented Apr 9, 2020

Are you importing /src/simple-react-validator.js and not the correct /dist/simple-react-validator.js file by any chance? It should be the dist you are importing. If not, please share some more details on what you are seeing.

@Haseeb710
Copy link
Author

I am using below statement for import as the import step mentioned in https://www.npmjs.com/package/simple-react-validator

import SimpleReactValidator from 'simple-react-validator';

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