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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] react-native-web error #81

Open
dgillier opened this issue Feb 1, 2022 · 3 comments
Open

[bug] react-native-web error #81

dgillier opened this issue Feb 1, 2022 · 3 comments

Comments

@dgillier
Copy link

dgillier commented Feb 1, 2022

馃悰 Bug report

Got errors while trying to use pinar with React-native-web:

./node_modules/pinar/dist/src/Pinar.js 268:24
Module parse failed: Unexpected token (268:24)
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 { accessibility, accessibilityLabelNext, controlsButtonStyle, controlsTextStyle, mergeStyles, } = this.props;

            return (<TouchableOpacity accessibilityLabel={accessibilityLabelNext} accessibilityRole="button" accessible={accessibility} onPress={this.scrollToNext} style={controlsButtonStyle} testID="PinarNextButton">

| <Text accessibilityLabel={accessibilityLabelNext} accessible={accessibility} style={mergeStyles
| ? [styles.buttonText, controlsTextStyle]

expo SDK 43.0.2
react-native-web 0.17.1

System:

  • OS: macOS 12.1
  • CPU: (8) arm64 Apple M1
  • Memory: 92.52 MB / 16.00 GB
  • Shell: 5.8 - /bin/zsh

Binaries:

  • Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
  • npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm

npmPackages:

  • pinar: ^0.12.1 => 0.12.1

thanks for your help :)
Denis

@dgillier dgillier changed the title [bug] Issue title [bug] reac-native-web error Feb 1, 2022
@dgillier dgillier changed the title [bug] reac-native-web error [bug] react-native-web error Feb 1, 2022
@kristerkari
Copy link
Owner

@dgillier Thanks! This library does not have support for Web and that's why it throws an error.

@glaucopater
Copy link

@dgillier Thanks! This library does not have support for Web and that's why it throws an error.

This means and also Storybook is not supported? Is something that you are considering to fix in the future?

@kristerkari
Copy link
Owner

@glaucopater Even if there would not be any Web support, you can always use Storybook on the native side (this library works just fine there).

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

3 participants