compilation error
See original GitHub issueDescribe the bug Compiation error while starting.
I got this error:
Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined
at $$$reconciler (react-reconciler.development.js?b6f5:149)
at Object.eval (react-pdf.browser.es.js?6576:5903)
at eval (react-pdf.browser.es.js:6713)
at Object../node_modules/@react-pdf/renderer/dist/react-pdf.browser.es.js (bundle.js:988)
at __webpack_require__ (bundle.js:660)
at fn (bundle.js:86)
at eval (PDF.js:3)
at Object../src/frontend/component/PDF.js (bundle.js:23250)
at __webpack_require__ (bundle.js:660)
at fn (bundle.js:86)
my code looks like this:
// Create Document Component
import React, {Component} from "react";
import { Document } from '@react-pdf/renderer';
import {connect} from "react-redux";
// Text editor
// CSS
// i18n
import {translate} from 'react-i18next';
import {compose} from "redux";
class PDF extends Component {
constructor(props) {
super(props);
this.bindLibs();
this.state = {
};
}
render() {
const {t} = this.props;
return (
<Document>
</Document>
);
}
/**
* This function binds formatter functions
*/
bindLibs = () => {
}
}
export default compose(
translate('translations'),
connect()
)(PDF);
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (3 by maintainers)
Top Results From Across the Web
What Is a Compilation Error? (with picture) - EasyTechJunkie
A compilation error is an error in building a machine code file for a computer language. Many computer languages compile their source code ......
Read more >Difference between Compile Time Errors and Runtime Errors
Compile-Time Errors: Errors that occur when you violate the rules of writing syntax are known as Compile-Time errors. This compiler error ...
Read more >7.3. Compile Errors and Warnings
A compile error happens when the compiler reports something wrong with your program, and does not produce a machine-language translation.
Read more >Reading/Fixing Compilation Errors
An attempted compile cycle with many errors can be overwhelming, but approaching the problem in a systematic way will help wade through the...
Read more >What is a compilation error? - Quora
2.> Compilation errors are errors which prevents your compiler from compiling your program, due to errors in the code, things like misspelled variable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did non use this package
working now.