-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Error when import then build #1669
Comments
What does But from the error message, it appears to be struggling with the syntax on this line which uses class fields. So I guess your build system is not setup for that syntax. The error message suggests you might need to use an appropriate loader to handle this syntax? |
Hi, thanks for quick response My env: Nodejs v18 Yarn build will execute webpack with babel Update webpack to latest version fix the issue! |
Plugin version
From v21.x.x => v23.1.0
Steps to reproduce
Got the error:
ERROR in ./node_modules/intl-tel-input/build/js/intlTelInput.js 1513:6
Module parse failed: Unexpected token (1513:6)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| var Iti = class {
| //* Can't be private as it's called from intlTelInput convenience wrapper.
| //* NOT Private
| promise;
@ ./src/form-elements/TelInput/index.js 4:0-42
@ ./src/form-elements/index.jsx
@ ./src/form.jsx
@ ./src/index.jsx
Downgrade to version v20.x.x or v19.x.x => Build OK
The text was updated successfully, but these errors were encountered: