longseespace / react-qml

Build native, high-performance, cross-platform applications through a React (and/or QML) syntax
MIT License
117 stars 7 forks source link

ReferenceError: RQ is not defined - when running example #5

Closed cheung31 closed 6 years ago

cheung31 commented 6 years ago

Current Behavior

When attempting to run examples:

Then, run application on qtCreator 4.7.0 / Qt 5.11.1 on MacOS

Expected Behavior

Bundle should run with no exceptions.

Configuration (react-qml.config.js)

const path = require('path');

module.exports = ({ root, platform }) => ({
  entry: './main.js',
  output: {
    path: path.join(root, 'qt/dist'),
    filename: `${platform}.bundle.js`,
    library: 'Bundle',
  },
});

Your Environment

MacOS qtCreator 4.7.0 Qt 5.11.1

software version
react-qml-cli 0.2.11
react-qml-renderer 0.2.2
qt-react 2.2.13
node 6.11.5
npm or yarn yarn
longseespace commented 6 years ago

Fixed. Also note that examples are moved to /packages. See https://github.com/longseespace/react-qml/tree/master/packages/example-with-redux.

Please check and let me know if the issue persists

cheung31 commented 6 years ago

@longseespace Yes, the latest examples on master now run. Thank you.