Level 73
The spread feature is not supported in Edge but babel should be able to handle that.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, i'm running my laravel react app on edge browser but getting an
Expected identifier, string or number
on a spread operator in the app.js which shows this
_getConfig(config) {
config = {
...Default,
...config
}
this is my .babelrc
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"edge": "17",
"firefox": "60",
"chrome": "67",
"safari": "11.1"
},
"useBuiltIns": "usage"
}
],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-destructuring",
"@babel/plugin-transform-template-literals"
]
}
please any help will be appreciated
Please or to participate in this conversation.