Skip to content

Ran into problem when importing #2

@guffrann9

Description

@guffrann9

I am getting this error when I try to import Autocomplete.

This is the full error I am getting

./node_modules/@telenko/react-native-paper-autocomplete/index.ts 4:7
Module parse failed: Unexpected token (4:7)
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
| export { FlatDropdown, ModalDropdown, memoCompare } from "./src/Dropdown";
| export { Autocomplete };
> export type { DropdownProps } from "./src/Dropdown";
| export type { AutocompleteProps } from "./src/Autocomplete/types";
| 

I did not have typescript installed. I did install it and tried removing all node_modules and package_lock and rerunning npm install but it is still giving the same error.

Do you have any ideas?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions