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

Error: Unexpected token on Toast static propTypes #190

Open
EAfang opened this issue Mar 5, 2020 · 9 comments
Open

Error: Unexpected token on Toast static propTypes #190

EAfang opened this issue Mar 5, 2020 · 9 comments

Comments

@EAfang
Copy link

EAfang commented Mar 5, 2020

Getting error on Toast static propTypes

`
/node_modules/galio-framework/src/Toast.js 11:19
Module parse failed: Unexpected token (11:19)
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
|
| class Toast extends Component {

static propTypes = {
| children: PropTypes.node.isRequired,
| isShow: PropTypes.bool.isRequired,
`

@tilldomke
Copy link

Same Problem here. Can anyone help?

@AndyOsei
Copy link
Collaborator

Kindly provide a reproducible example so I could look into it...

@tilldomke
Copy link

The Error occurs when I try to run the app in any way via expo start after npm install galio-framework. It happens with a new, clean app and with my app already in development

@AndyOsei
Copy link
Collaborator

I don't think this is an issue with Galio, it because of your babel loader config and/or webpack if you are using it. Try clearing your bundler cache and make sure your babel.config.js or web pack.config.js if any is using the appropriate config rules.

@syky27
Copy link

syky27 commented Apr 10, 2020

I am facing the same issue when trying to build for web using expo

@RichardTheHouse
Copy link

RichardTheHouse commented Apr 12, 2020

Same, fixed this by updating app.json and including the following in the expo section:
"web": { "build": { "babel": { "include": ["galio-framework"] } } }

@syky27
Copy link

syky27 commented Apr 13, 2020

@RichardTheHouse Thanks, I figured that out, unfortunately I am getting error with almost all of my dependencies...

@BoGnY
Copy link

BoGnY commented Apr 7, 2021

same problem after installing galio-framework on existing app

@ismailfarooq
Copy link

Any Updates on this 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

7 participants