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

WebPack error #12

Open
maryok22 opened this issue Apr 23, 2020 · 6 comments
Open

WebPack error #12

maryok22 opened this issue Apr 23, 2020 · 6 comments

Comments

@maryok22
Copy link

Got a WebPack error when I'm importing import { Root, Popup } from 'popup-ui

C:/Users/Mk/appBeta/node_modules/popup-ui/src/basic/Popup/index.js 10:1
Module parse failed: Unexpected token (10:1)
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
|   static popupInstance
| 
>  static show({ ...config }) {
|               this.popupInstance.start(config)
|        }

@beduffy
Copy link

beduffy commented Jul 16, 2020

I also have this error

@rafaelaugustos
Copy link
Owner

Can you share with me the code or a place where i can try?

@beduffy
Copy link

beduffy commented Jul 16, 2020

I'm copying the example from the README

import { Root, Popup } from 'popup-ui'


<Root>
    <View>
        <TouchableOpacity
            onPress={() =>
              Popup.show({
                type: 'Success',
                title: 'Upload complete',
                button: false,
                textBody: 'Congrats! Your upload successfully done',
                buttontext: 'Ok',
                callback: () => Popup.hide()
              })
            }
        >
            <Text>Open Popup</Text>
        </TouchableOpacity>
    </View>
</Root>

I installed with npm and my react-native version is:
react-native-cli: 2.0.1
react-native: 0.62.2

@andresribeiro
Copy link

I am having the same error

@minawalphonce
Copy link

any updates regarding this error ?
I m using expo

@Johannes-ece
Copy link

same problem here

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

6 participants