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

@availity/reactstrap-validation-select/src/AvResourceSelect.js Not working in React Project With 17 React Version #1346

Open
sourabhDhariwal1234 opened this issue Oct 27, 2023 · 0 comments

Comments

@sourabhDhariwal1234
Copy link

sourabhDhariwal1234 commented Oct 27, 2023

Getting this issue when Run React application locally

./node_modules/@availity/reactstrap-validation-select/src/AvResourceSelect.js
SyntaxError: F:\work\inventory-mgmt\node_modules@availity\reactstrap-validation-select\src\AvResourceSelect.js: Support for the experimental syntax 'jsx' isn't currently enabled (206:7):

204 |
205 | return (

206 | <Tag
Failed to compile.

./node_modules/@availity/reactstrap-validation-select/src/AvResourceSelect.js
SyntaxError: F:\work\inventory-mgmt\node_modules@availity\reactstrap-validation-select\src\AvResourceSelect.js: Support for the experimental syntax 'jsx' isn't currently enabled (206:7):

204 |
205 | return (

206 | <Tag
| ^
207 | selectRef={this.selectRef}
208 | loadOptions={this.loadOptions}
209 | defaultOptions={waitUntilFocused ? [] : true}

Add @babel/preset-react (https://github.com/babel/babel/tree/main/packages/babel-preset-react) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx) to the 'plugins' section to enable parsing.

I have added babel.config.json file but still getting the same Error

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