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.

Example App Doesn't work on web on windows

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Explain what you did

Installed the expo CLI

Fresh cloned the repo and followed the instructions here: https://github.com/react-native-elements/react-native-elements/tree/next/example

Ran yarn install

Ran yarn web

I’m not sure if this issue is because of an incompatible expo version etc.

Expected behavior

Application should run as per instructions

Describe the bug

The app throws the following exceptions and does not run

`…/packages/themed/src/index.ts 131:7 Module parse failed: Unexpected token (131: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 | | // Components Props exports

export type { | AvatarProps, | BadgeProps, …/packages/base/src/Image/index.tsx 14:7 Module parse failed: Unexpected token (14: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 { Image }; export type { ImageProps }; | …/packages/base/src/Dialog/index.tsx 14:7 Module parse failed: Unexpected token (14: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 type { | DialogProps, | DialogLoadingProps, …/packages/base/src/helpers/index.tsx 15:7 Module parse failed: Unexpected token (15: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 | const isIOS = Platform.OS === ‘ios’; | export type StringOmit<K extends string> = K | Omit<string, K>; | | export type RneFunctionComponent<T> = React.FunctionComponent< …/packages/base/src/LinearProgress/index.tsx 16:33 Module parse failed: Unexpected token (16:33) 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 | */ | const LinearProgress = Object.assign(LinearProgressBase, { INDETERMINATE: ‘indeterminate’ as LinearProgressProps[‘variant’], | DETERMINATE: ‘determinate’ as LinearProgressProps[‘variant’], | }); …/packages/base/src/Card/index.tsx 23:7 Module parse failed: Unexpected token (23: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 { Card }; export type { | CardProps, | CardDividerProps, …/packages/base/src/ListItem/index.tsx 33:7 Module parse failed: Unexpected token (33: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 type { | ListItemAccordionProps, | ListItemButtonGroupProps, …/packages/base/src/AirbnbRating/index.tsx 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 { AirbnbRating }; export type { TapRatingProps }; | …/packages/base/src/BottomSheet/index.tsx 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 { BottomSheet }; export type { BottomSheetProps }; | …/packages/base/src/Button/index.tsx 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 { Button }; export type { ButtonProps }; | …/packages/base/src/ButtonGroup/index.tsx 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 { ButtonGroup }; export type { ButtonGroupProps }; | …/packages/base/src/CheckBox/index.tsx 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 { CheckBox }; export type { CheckBoxProps }; | …/packages/base/src/Chip/index.tsx 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 { Chip }; export type { ChipProps }; | …/packages/base/src/Divider/index.tsx 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 { Divider }; export type { DividerProps }; | …/packages/base/src/FAB/index.tsx 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 { FAB }; export type { FABProps }; | …/packages/base/src/Header/index.tsx 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 { Header }; export type { HeaderProps }; | …/packages/base/src/Icon/index.tsx 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 { Icon }; export type { IconProps, IconNode, IconObject, IconType }; | …/packages/base/src/Input/index.tsx 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 { Input }; export type { InputProps }; | …/packages/base/src/Overlay/index.tsx 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 { Overlay }; export type { OverlayProps }; | …/packages/base/src/PricingCard/index.tsx 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 { PricingCard }; export type { PricingCardProps }; | …/packages/base/src/Rating/index.tsx 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 { Rating }; export type { SwipeRatingProps }; | …/packages/base/src/Skeleton/index.tsx 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 { Skeleton }; export type { SkeletonProps }; | …/packages/base/src/Slider/index.tsx 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 { Slider }; export type { SliderProps }; | …/packages/base/src/SocialIcon/index.tsx 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 { SocialIcon }; export type { SocialIconProps }; | …/packages/base/src/Switch/index.tsx 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 { Switch }; export type { SwitchProps }; | …/packages/base/src/Text/index.tsx 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 { Text }; export type { TextProps }; | …/packages/base/src/Tile/index.tsx 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 { Tile }; export type { TileProps }; | …/packages/base/src/Tooltip/index.tsx 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 { Tooltip }; export type { TooltipProps }; | …/packages/base/src/Badge/index.tsx 5:7 Module parse failed: Unexpected token (5: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 { withBadge, Badge }; export type { BadgeProps }; | …/packages/base/src/SearchBar/index.tsx 7:7 Module parse failed: Unexpected token (7: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 { SearchBar }; export type { | SearchBarProps, | SearchBarAndroidProps, …/packages/base/src/TabView/index.tsx 7:7 Module parse failed: Unexpected token (7: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 | Item: TabViewItem, | }); export type { TabViewProps, TabViewItemProps }; | …/packages/base/src/Tab/index.tsx 8:7 Module parse failed: Unexpected token (8: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 type { TabProps, TabItemProps }; | …/packages/base/src/SpeedDial/index.tsx 8:7 Module parse failed: Unexpected token (8: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 { DefaultSpeedDial as SpeedDial }; export type { SpeedDialProps, SpeedDialActionProps }; | …/packages/base/src/Avatar/index.tsx 9:7 Module parse failed: Unexpected token (9: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 { Avatar, Accessory }; | export type { AccessoryProps, AvatarProps };`

Steps To Reproduce

Follow instructions using yarn on windows:
https://github.com/react-native-elements/react-native-elements/tree/next/example

The example app will not run

Screenshots

image

Your Environment

`npx @rneui/envinfo` npx: installed 2 in 2.032s

npmGlobalPackages:

  • expo: Not Found
  • typescript: Not Found
  • react-native-cli: Not Found
`npm list -g --depth 0`

npm global packages I have installed:

±- expo-cli@5.4.4 ±- firebase-tools@9.20.0 ±- typescript@4.6.4 `-- yarn@1.22.17

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
slayer1551commented, Jul 2, 2022

@slayer1551 which OS?

@arpitBhalla Im running it on Windows 11

0reactions
arpitBhallacommented, Oct 22, 2022

Will work now

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot non-browser apps that can't sign in to ...
Solution · Resolution 1: Network connectivity is limited · Resolution 2: Firewall or proxy servers require additional authentication · Resolution 3: Prerequisites ...
Read more >
How to Fix the "This App Can't Run on Your PC" Error in ...
1. Check the App's Version ... If you downloaded and installed the app without checking its properties, it might be incompatible with your...
Read more >
Top 10 Solutions to Fix This App Can't Run on Your PC in Win ...
1. Click Win + S to open the search box and type smartscreen in the box. · 2. Click App & browser control...
Read more >
Program Won't Open? How to Fix Apps not ... - YouTube
Program won't open or program not opening in Windows 10? This video will show you how to fix programs, apps and games that...
Read more >
How To Fix Windows 10 Apps Not Opening - YouTube
Windows 10 apps might refuse to open anytime. Learn to fix Windows 10 apps not opening problem, this may happen with few apps...
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