import React from 'react';
import { Page, Text, View, Document, StyleSheet } from '@react-pdf/renderer';
// Create styles
const styles = StyleSheet.create({
page: {
flexDirection: 'row',
backgroundColor: '#E4E4E4'
},
section: {
margin: 10,
padding: 10,
flexGrow: 1
}
});
// Create Document Component
const MyDocument = () => (
{/*
<Text render={()=>('Section #1')}>
*/}
);
export default MyDocument;
in the web page tips:
index.js:461 Uncaught TypeError: Cannot read property 'emit' of undefined
at emitCloseNT (index.js:461)
above in the <node_modules/browerift-zlib/lib/index.js> error
why?
import React from 'react';
import { Page, Text, View, Document, StyleSheet } from '@react-pdf/renderer';
// Create styles
const styles = StyleSheet.create({
page: {
flexDirection: 'row',
backgroundColor: '#E4E4E4'
},
section: {
margin: 10,
padding: 10,
flexGrow: 1
}
});
// Create Document Component
const MyDocument = () => (
{/*
<Text render={()=>('Section #1')}>
*/}
);
export default MyDocument;
in the web page tips:
index.js:461 Uncaught TypeError: Cannot read property 'emit' of undefined
at emitCloseNT (index.js:461)
above in the <node_modules/browerift-zlib/lib/index.js> error
why?