Cara Solve WARN "Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties." Fresh Nuxt.JS
Cara Solve WARN "Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties." Fresh Nuxt.JS
Ngabuburit Sambil otak atik Nuxt.JS Ketika selesai install nuxt.js kemudian menajalankan project nuxt.js "npm run dev" keluar warning
WARN Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.WARN atau alert ini belum kelihatan efeknya , tapi tampilan text ini di console kelihatan tidak enak. Nah berikut cara agar fix Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
Install sass-loader@10
npm i sass-loader@10tunggu hingga proses selesai, kemudian edit nuxt.config.js tambahkan script berikut;
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
babel: {
"plugins": [["@babel/plugin-proposal-private-methods", { "loose": true }]]
}
}
}oke save dan jalankan kembali nuxt dengan perintah "npm run dev". Alert WARN sudah tidak ada.
