question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compilation error

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
holzfelixcommented, Aug 27, 2019

I did non use this package

1reaction
holzfelixcommented, Mar 22, 2019

working now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found