-
Notifications
You must be signed in to change notification settings - Fork 269
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
mobx support #5
Comments
Hi @ltkn, What version of the react-scripts are you using? If you're using the version 2.0.3, take a look at my comment here, maybe that can help. |
Hi @walmor, |
try my fork: https://github.com/war3k/customize-cra |
Hi all! I've fixed my babel plugin method with @walmor's fix (or a version of it that works with the new api, using @ltkn - thanks a ton for the PR, but I had to go with walmor's fix, since it's more backward compatible. |
Credits to @war3k I haven't done the PR ;) Can't get mobx working with my packages : |
Are you disabling eslint? This is what my config-overrides looks like const { override, addDecoratorsLegacy, disableEsLint, addBundleVisualizer, addWebpackAlias } = require("customize-cra");
const path = require("path");
module.exports = override(
addDecoratorsLegacy(),
disableEsLint(),
config => (process.env.BUNDLE_VISUALIZE == 1 ? addBundleVisualizer()(config) : config),
addWebpackAlias({ ["ag-grid-react$"]: path.resolve(__dirname, "src/shared/agGridWrapper.js") })
); killing eslint is likely necessary for it to parse. |
Yes it's disabled but somehow still get "Support for the experimental syntax 'decorators-legacy' isn't currently enabled". Anyone with the same versions got mobx annotations working ? thanks. |
Let's see your config-overrides file |
not sure if I need config => ( line but its there. |
Just to be certain, you ARE using react-app-rewired to run your app, right? So in your package.json, you should have scripts that look something like this: "start": "react-app-rewired start",
"build": "react-app-rewired build" |
I wasn't ! I did assume this library was a replacement. It is now working thanks a lot for your help ! |
Anytime - I'll update the docs to make this more clear. |
Hi,
First of all thanks for your work.
I don't seem to get mobx working using the latest beta-3 version.
I get
SyntaxError: /home/xxx/xxx.js: Support for the experimental syntax 'decorators-legacy' isn't currently enabled (11:1):
My config-overrides.js
const { override, addDecoratorsLegacy, disableEsLint } = require("customize-cra"); module.exports = override( addDecoratorsLegacy(), disableEsLint() );
The text was updated successfully, but these errors were encountered: