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

Can't use class-properties plugin on fresh install #49

Open
sheldonbaker opened this issue Jul 11, 2019 · 0 comments
Open

Can't use class-properties plugin on fresh install #49

sheldonbaker opened this issue Jul 11, 2019 · 0 comments

Comments

@sheldonbaker
Copy link

I'm doing the following:

ember new myapp
ember install ember-cli-react

creating a new app/components/foo-bar/component.jsx:

import React from 'react';

export default class SomeExample extends React.Component {
  state = {
    value: null,
  }
}

But ember chokes on a Build Error (ReactFilter) when it gets to the class property definition in the component.

I'm on ember 3.10:

"devDependencies": {
    "@ember/jquery": "^0.6.0",
    "@ember/optional-features": "^0.7.0",
    "broccoli-asset-rev": "^3.0.0",
    "ember-ajax": "^5.0.0",
    "ember-auto-import": "^1.5.2",
    "ember-cli": "~3.10.0",
    "ember-cli-app-version": "^3.2.0",
    "ember-cli-babel": "^7.7.3",
    "ember-cli-dependency-checker": "^3.1.0",
    "ember-cli-eslint": "^5.1.0",
    "ember-cli-htmlbars": "^3.0.1",
    "ember-cli-htmlbars-inline-precompile": "^2.1.0",
    "ember-cli-inject-live-reload": "^1.8.2",
    "ember-cli-react": "^1.0.2",
    "ember-cli-sri": "^2.1.1",
    "ember-cli-template-lint": "^1.0.0-beta.1",
    "ember-cli-uglify": "^2.1.0",
    "ember-data": "~3.10.0",
    "ember-export-application-global": "^2.0.0",
    "ember-load-initializers": "^2.0.0",
    "ember-maybe-import-regenerator": "^0.1.6",
    "ember-qunit": "^4.4.1",
    "ember-resolver": "^5.0.1",
    "ember-source": "~3.10.0",
    "ember-welcome-page": "^4.0.0",
    "eslint-plugin-ember": "^6.2.0",
    "eslint-plugin-node": "^8.0.1",
    "loader.js": "^4.7.0",
    "qunit-dom": "^0.8.4",
    "react": "^16.8.6",
    "react-dom": "^16.8.6"
  },

The linter also raises an error in that component.jsx file. I've tried explicitly loading that plugin in the babel config in ember-cli-build.js, but to no avail.

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

1 participant