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

npm run storybook should work in NativeBase/example #4665

Open
1 of 5 tasks
silgal opened this issue Feb 22, 2022 · 10 comments
Open
1 of 5 tasks

npm run storybook should work in NativeBase/example #4665

silgal opened this issue Feb 22, 2022 · 10 comments

Comments

@silgal
Copy link

silgal commented Feb 22, 2022

Description

npm run storybook should work in NativeBase/example

CodeSandbox/Snack link

N/A

Steps to reproduce

#!/usr/bin/env sh
git clone git@github.com:GeekyAnts/NativeBase.git /tmp/NativeBase
cd /tmp/NativeBase/example
yarn
yarn storybook

NativeBase Version

not sure, not in package.json

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

No response

Additional Information

ERROR in ./node_modules/react-native/index.js 13:7
Module parse failed: Unexpected token (13: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
| 'use strict';
|
> import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
| import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
| import typeof Button from './Libraries/Components/Button';
 @ ./node_modules/@storybook/addon-ondevice-actions/dist/components/ActionLogger/Inspect.js 26:21-44
 @ ./node_modules/@storybook/addon-ondevice-actions/dist/components/ActionLogger/index.js
 @ ./node_modules/@storybook/addon-ondevice-actions/dist/containers/ActionLogger/index.js
 @ ./node_modules/@storybook/addon-ondevice-actions/dist/index.js
 @ ./node_modules/@storybook/addon-ondevice-actions/register.js
 @ ./storybook/addons.ts
 @ multi ./node_modules/@storybook/react-native-server/node_modules/@storybook/core/dist/server/common/polyfills.js ./storybook/addons.ts ./node_modules/@storybook/react-native-server/dist/client/manager/index.js
@surajahmed
Copy link
Collaborator

@silgal Thanks for reporting! We're looking into this.

@barry-velasquez
Copy link

Any more info on this one?

@stale
Copy link

stale bot commented May 25, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 25, 2022
@silgal
Copy link
Author

silgal commented May 26, 2022

Any more info on this one?

@stale stale bot removed the stale label May 26, 2022
@surajahmed
Copy link
Collaborator

There is some loader issue with the storybook. Please try running with expo for now. We'll keep you updated. Thanks for your patience.

@dohomi
Copy link

dohomi commented Aug 14, 2022

I would love to get Storybook + native-base work side by side. currently I hit a brick seems that internal structure on how to do styles is not supported with Storybook

@Viraj-10
Copy link
Collaborator

Viraj-10 commented Sep 19, 2022

Hi @dohomi, by storybook you mean react storybook or storybook inside nativebase repo?

@dohomi
Copy link

dohomi commented Sep 20, 2022

@Viraj-10 Storybook for the use with nativebase.

@theaa-zeeshan-khan
Copy link

Any updates?

@macrozone
Copy link

did anyone found a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants