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

getting 'ReferenceError: $ is not defined' in react class #33

Open
sud0bug opened this issue Aug 1, 2018 · 2 comments
Open

getting 'ReferenceError: $ is not defined' in react class #33

sud0bug opened this issue Aug 1, 2018 · 2 comments

Comments

@sud0bug
Copy link

sud0bug commented Aug 1, 2018

I tried to implement formulize as shown below

import React, { Component } from 'react';
import { UI } from 'formulize';

export default class FormulaBuilder extends Component {

    componentDidMount() {
        const target = document.getElementById('rule-action-formulize');
        const formulize = new UI(target, {
            // ...options
        });

        const data = {
            operator: '*',
            operand1: { value: { type: 'unit', unit: 1 } },
            operand2: { value: { type: 'unit', unit: 2 } }
        };

        formulize.setData(data);
    }

    render() {
        return <div id="rule-action-formulize" />
    }

}

But I am getting following error

ReferenceError: $ is not defined[Learn More] formulize.umd.js:2168

@ciponthenet
Copy link

I've got the same issue with Vuejs.

@xukeek
Copy link

xukeek commented May 13, 2019

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

No branches or pull requests

3 participants