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

TypeError: __webpack_require__.i(…) is not a function in React-Select #3653

Closed
shashankshahplutus opened this issue Jun 27, 2019 · 6 comments
Labels
awaiting-author-response Issues or PRs waiting for more information from the author issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet issue/reviewed Issue has recently been reviewed (mid-2020)

Comments

@shashankshahplutus
Copy link

I am using react-select plugin for multiple selection from dropdown.

For installation i have done

npm install react-select --save

which installed latest version 3.0.4 of react-select plugin

My code is


import React, { Component } from 'react';
import Select from 'react-select';

import urls from '../../../urls.json';

const options = [
  { value: 'chocolate', label: 'Chocolate' },
  { value: 'strawberry', label: 'Strawberry' },
  { value: 'vanilla', label: 'Vanilla' },
];
class Reports extends Component {

  constructor(props) {
    super(props);

    this.state = {
      selectedOption: null,
    };

  }
  handleChange = selectedOption => {
    this.setState({ selectedOption });
    console.log(`Option selected:`, selectedOption);
  };
  componentDidMount() { }

  render() {

    return (
      <div>
        <div className="row">
          <div className="col-md-12">
            <h2>Reports</h2>
            <hr className="title-separator" />
            <Select
                value={this.state.selectedOption}
                onChange={this.handleChange}
                options={options}
            />
          </div>
        </div>
      </div >
    )
  }
}

export default Reports;

image
Please help!

@sobrinho
Copy link

sobrinho commented Jul 9, 2019

Same issue here.

@sourabh504
Copy link

Same issue here

@mrstalon
Copy link

Same issue

@LucidNinja
Copy link

I had this issue because I started my proejct in Codesandbox. When I downloaded the project, I realised that they use an older version of React by default. Updating to the latest version of React (16.8.6) resolved the issue for me.

@bladey bladey added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label May 29, 2020
@bladey
Copy link
Contributor

bladey commented Jun 18, 2020

Thanks for the feedback @LucidNinja!

@shashankshahplutus, @sobrinho, @SourabhRanka, @mrstalon does this happen to solve the issue for you?

@bladey bladey added awaiting-author-response Issues or PRs waiting for more information from the author issue/reviewed Issue has recently been reviewed (mid-2020) labels Jun 18, 2020
@bladey
Copy link
Contributor

bladey commented Jun 29, 2020

This issue will now be closed due to inactivity. If anyone can provide further feedback, the issue will be re-opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-author-response Issues or PRs waiting for more information from the author issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet issue/reviewed Issue has recently been reviewed (mid-2020)
Projects
None yet
Development

No branches or pull requests

6 participants