question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unexpected token on Toast static propTypes

See original GitHub issue

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, `

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

7reactions
RichardTheHousecommented, Apr 12, 2020

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

0reactions
ismailfarooqcommented, Jan 23, 2022

Any Updates on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactJS: Unexpected token error from static proptypes
Step : 1 - I am assuming you are installing prop-types npm install --save prop-types as a seperate library and then importing it...
Read more >
galio-community/Lobby - Gitter
Yes, this is a known issue, I'm going to solve that bug asap ... error is happening? Module parse failed: Unexpected token (11:19)...
Read more >
Issues · galio-org/galio · GitHub
Input TextAlign not Working. #188 opened Mar 3, 2020 by tksilicon ... Error: Unexpected token on Toast static propTypes. #190 opened Mar 5,...
Read more >
React Native - unexpected token static propTypes when ...
Coding example for the question React Native - unexpected token static propTypes when running assmbleRelease, babel plugin doesnt work-babel.js.
Read more >
How to Replace Strapi's Default WYSIWYG Editor with ...
propTypes = { errors: PropTypes.array, inputDescription: PropTypes. ... Uncaught SyntaxError: Unexpected token '<' Uncaught Error: tinymce ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found