Guest User

Untitled

a guest
Jan 18th, 2018
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. ERROR in ./node_modules/react-native/Libraries/react-native/react-native-implementation.js
  2. Module not found: Error: Can't resolve 'AccessibilityInfo' in 'app/node_modules/react-native/Libraries/react-native'
  3.  
  4. $ start-storybook start -p 7007 -c .storybook
  5.  
  6. info @storybook/react v3.3.9
  7. info
  8. Failed to load ./.env.
  9. info => Loading custom .babelrc
  10. info => Loading custom webpack config (full-control mode).
  11. 26% building modules 136/147 modules 11 active ...-v2/node_modules/es5-shim/es5-shim.js
  12. [at-loader] Using typescript@2.5.3 from typescript and "tsconfig.json" from app/tsconfig.json.
  13.  
  14. 94% asset optimization
  15. [at-loader] Checking started in a separate process...
  16.  
  17. [at-loader] Checking finished with 185 errors
  18. webpack built c763d68b78931e9f2589 in 7072ms
  19. Hash: c763d68b78931e9f2589
  20. Version: webpack 3.10.0
  21. Time: 7072ms
  22. Asset Size Chunks Chunk Names
  23. static/manager.bundle.js 2.63 MB 0 [emitted] [big] manager
  24. static/preview.bundle.js 1.62 MB 1 [emitted] [big] preview
  25. static/manager.bundle.js.map 3.22 MB 0 [emitted] manager
  26. static/preview.bundle.js.map 1.92 MB 1 [emitted] preview
  27. index.html 1.2 kB [emitted]
  28. iframe.html 583 bytes [emitted]
  29. [205] ./node_modules/@storybook/react/dist/server/config/polyfills.js 113 bytes {0} {1} [built]
  30. [517] multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/addons.js ./node_modules/@storybook/react/dist/client/manager/index.js 52 bytes {0} [built]
  31. [518] ./node_modules/@storybook/react/dist/server/addons.js 105 bytes {0} [built]
  32. [519] ./node_modules/@storybook/addon-actions/register.js 30 bytes {0} [built]
  33. [520] ./node_modules/@storybook/addon-links/register.js 30 bytes {0} [built]
  34. [521] ./node_modules/@storybook/react/dist/client/manager/index.js 404 bytes {0} [built]
  35. [729] ./node_modules/@storybook/react/dist/client/manager/provider.js 3.31 kB {0} [built]
  36. [731] multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/config/globals.js (webpack)-hot-middleware/client.js?reload=true ./.storybook/config.js 64 bytes {1} [built]
  37. [732] ./node_modules/@storybook/react/dist/server/config/globals.js 105 bytes {1} [built]
  38. [733] (webpack)-hot-middleware/client.js?reload=true 7.35 kB {1} [built]
  39. [737] ./node_modules/strip-ansi/index.js 161 bytes {1} [built]
  40. [739] (webpack)-hot-middleware/client-overlay.js 2.21 kB {1} [built]
  41. [744] (webpack)-hot-middleware/process-update.js 4.33 kB {1} [built]
  42. [745] ./.storybook/config.js 94 bytes {1} [built]
  43. [817] ./stories/index.js 925 bytes {1} [built]
  44. + 807 hidden modules
  45.  
  46. ERROR in ./node_modules/react-native/Libraries/react-native/react-native-implementation.js
  47. Module not found: Error: Can't resolve 'AccessibilityInfo' in 'app/node_modules/react-native/Libraries/react-native'
  48. @ ./node_modules/react-native/Libraries/react-native/react-native-implementation.js 19:35-63
  49. @ ./src/components/Question.tsx
  50. @ ./stories/index.js
  51. @ ./.storybook/config.js
  52. @ multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/config/globals.js (webpack)-hot-middleware/client.js?reload=true ./.storybook/config.js
  53.  
  54. 1 import * as React from "react"
  55. 2 import { StyleProp, StyleSheet, Text, ViewStyle } from "react-native"
  56. 3 import { colors } from "../styles/colors"
  57. 4 import { fonts } from "../styles/fonts"
  58. 5
  59. 6 export interface IProps {
  60. 7 style?: StyleProp<ViewStyle>
  61. 8 onPress?: () => void
  62. 9 }
  63. 10
  64. 11 const styles = StyleSheet.create({
  65. 12 title: {
  66. 13 color: colors.black,
  67. 14 fontFamily: fonts.bold,
  68. 15 fontSize: 24,
  69. 16 fontWeight: "bold",
  70. 17 marginBottom: 10,
  71. 18 textAlign: "center",
  72. 19 },
  73. 20 })
  74. 21
  75. 22 export const Question: React.SFC<IProps> = ({ style, ...otherProps }) => (
  76. 23 <Text style={ [styles.title, style] }> { otherProps.children } </Text >
  77. 24 )
  78.  
  79. 1 {
  80. 2 "presets": [
  81. 3 "react-native"
  82. 4 ]
  83. 5 }
  84.  
  85. 1 import React from 'react';
  86. 2 import { storiesOf } from '@storybook/react';
  87. 3 import { action } from '@storybook/addon-actions';
  88. 4 import Question from '../src/components/Question';
  89. 5
  90. 6 storiesOf('Button', module)
  91. 7 .add('with text', () => (
  92. 8 <Question onClick={action('clicked')}>Hello Button</Question>
  93. 9 ))
  94. 10 .add('with some emoji', () => (
  95. 11 <Question onPress={action('clicked')}>😀 😎 👍 💯 </Question>
  96. 12 ));
Add Comment
Please, Sign In to add comment