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

Callback was already called error #2

Open
sahar922 opened this issue Nov 27, 2018 · 3 comments
Open

Callback was already called error #2

sahar922 opened this issue Nov 27, 2018 · 3 comments

Comments

@sahar922
Copy link

Hi,
After installing and trying to use the plugin, I've got compilation errors.

`throw new Error('Callback was already called.');
^

Error: Callback was already called.
at throwError (/Users/.../node_modules/neo-async/async.js:14:11)
at /Users/.../node_modules/neo-async/async.js:2813:7
at process._tickCallback (internal/process/next_tick.js:61:11)
`

any suggestions?

@tlehwalder
Copy link

same for me

@zhaofang
Copy link

how to fix it?

@kopax
Copy link

kopax commented Jan 14, 2019

A test package has been released:

$ npm install @yeutech-lab/react-app-rewire-define-plugin --save-dev

In your code:

const rewireDefinePlugin = require('@yeutech-lab/react-app-rewire-define-plugin');

    // Use `webpack.DefinePlugin` to add the version number from package.json
    config = rewireDefinePlugin(config, env, {
      'process.env.VERSION': JSON.stringify(require('./package.json').version),
      'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
      'process.env.GA_TRACKING_ID': JSON.stringify(process.env.GA_TRACKING_ID),
    });

Waiting PR to be merge

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

4 participants