-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Build failed for: "ERROR: Big integer literals are not available in the configured target environment" with Ionic + React + Vite #1745
Comments
I just tried but the error is same |
I solved disabled legacy plugin edit config with:
|
By the way, in addition to adding the configuration mentioned by @lags above, I also had to add the following configuration for it to run correctly.
|
I don't need to add any of that setting when using with vite, are you using latest? |
life saver |
The workaround should not be needed anymore after this is merged: #1963 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When try to launch
yarn build
build stuck with error.For reproduce I use:
ionic start photo-gallery tabs --type=react --capacitor
cd photo-gallery
npm install mqtt --save
Inside App.tsx:
import mqtt from 'mqtt';
and in useEffect hook:
If I remove or comment
const _mqtt = mqtt.connect({});
build successfullyAs workaround I am using mqtt library throught cdn (putting script tag inside index.html) and call by
window.mqtt.connect({})
Any suggest for fix it is appreciate
The text was updated successfully, but these errors were encountered: