SCRIPT1014: Caractère incorrect on IE11 / webpack / Babel / foundationNPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack“exclude” options of babel-loader in WebpackHow to fix HTML file comments not being ignored by Webpack Dev Server?webpack with babel-preset-env “last 2 versions” with internet explorerWebpack: Unexpected token importGenerate multiple outputs using Babel and WebpackBabel-loader 8 complains about not finding deprecated babel-preset-es2015Webpack css issue, missing bundle.cssUsing webpack-dev-server 3 with parallel-webpack

Why did my "seldom" get corrected?

Do higher dimensions have axes?

When will the last unambiguous evidence of mankind disappear?

"Je suis petite, moi?", purpose of the "moi"?

Applying for jobs with an obvious scar

Why teach C using scanf without talking about command line arguments?

"This used to be my phone number"

Random piece of plastic

Three Subway Escalators

Why didn't Doctor Strange restore Tony Stark after he used the Stones?

Why do jet engines sound louder on the ground than inside the aircraft?

Locked-up DOS computer beeped on keypress. What mechanism caused that?

Do pedestrians imitate auto traffic?

Why can't I hear fret buzz through the amp?

How to not confuse readers with simultaneous events?

Are there any satellites in geosynchronous but not geostationary orbits?

How to interpret a promising preprint that was never published in peer-review?

How much solution to fill Paterson Universal Tank when developing film?

What would be the safest way to drop thousands of small, hard objects from a typical, high wing, GA airplane?

Tuning G3 string to A3 guitar

How did Jayne know when to shoot?

How to prove that the covariant derivative obeys the product rule

Manager asking me to eat breakfast from now on

The most secure way to handle someone forgetting to verify their account?



SCRIPT1014: Caractère incorrect on IE11 / webpack / Babel / foundation


NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack“exclude” options of babel-loader in WebpackHow to fix HTML file comments not being ignored by Webpack Dev Server?webpack with babel-preset-env “last 2 versions” with internet explorerWebpack: Unexpected token importGenerate multiple outputs using Babel and WebpackBabel-loader 8 complains about not finding deprecated babel-preset-es2015Webpack css issue, missing bundle.cssUsing webpack-dev-server 3 with parallel-webpack






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm updating dependencies on my website.
It works fine on recents browsers, Edge, Chrome, Firefox.



But on IE11, I get "SCRIPT1014: Caractère incorrect"
on this line :



eval("__webpack_require__.r(__webpack_exports__);n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Foundation", function


I thaught babel was well configured to make it work on IE11, but it's not.



Here is my configurations files
Package.json :




"name": "project_name",
"version": "3.0.0",
"description": "Starter project by us, build with foundation 6 & compiled with webpack 4",
"main": "index.js",
"scripts":
"test": "echo "Error: no test specified" && exit 1",
"dev": "webpack --mode development --watch",
"build": "cross-env NODE_ENV=production webpack --progress",
"proxy": "./node_modules/.bin/browser-sync start --config ./proxy.dev.json"
,
"keywords": [],
"author": "Me",
"license": "ISC",
"devDependencies":
"autoprefixer": "^8.6.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.7.0",
"browser-sync": "^2.26.3",
"cross-env": "^5.1.6",
"css-loader": "^0.28.11",
"mini-css-extract-plugin": "^0.5.0",
"node-sass": "^4.11.0",
"optimize-css-assets-webpack-plugin": "^4.0.2",
"postcss-loader": "^2.1.5",
"sass-loader": "^6.0.7",
"style-loader": "^0.23.1",
"webpack": "^4.20.2",
"webpack-cli": "^3.0.2"
,
"dependencies":
"jquery": "^3.2.1",
"foundation-sites": "^6.5.1",
"slick-carousel": "^1.6.0",
"cleave.js": "^0.7.15",
"family.scss": "^1.0.8",
"url-safe-string": "^1.1.0",
"jquery.easing": "1.4.1",
"jquery-colorbox": "^1.6.4",
"select2": "^4.0.3"




.babelrc



 
"presets" : [
["env",
"targets":
"browsers": ["last 2 versions", "ie >= 11"]

],
]



webpack.config.js



 // webpack v4

const webpack = require('webpack');
const path = require('path');

// pour créer le fichier CSS on utilise extractText
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

// pour minifier le CSS
const OptimizeCSSAssets = require("optimize-css-assets-webpack-plugin");
new OptimizeCSSAssets();

const devMode = process.env.NODE_ENV !== 'production';
var nodePath = path.resolve(__dirname, 'node_modules');

module.exports =
entry: [ './src/index.js'],
output:
path: path.resolve(__dirname, '../public/assets'),
filename: 'bundleV4.js'
,
module:
rules: [
// babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

test: /.js$/,
exclude: /(node_modules,
// allow SCSS to be compiled in CSS

test: /.(sa

]
,
plugins: [
new MiniCssExtractPlugin(
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: "appV4.css",
chunkFilename: "[id].css"
),
new webpack.ProvidePlugin(
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
)
],
;

// minify CSS for production
if (process.env.NODE_ENV === 'production')
module.exports.plugins.push(new OptimizeCSSAssets());










share|improve this question



















  • 1





    Which character exactly produces this error?

    – Daniel Ruf
    Mar 22 at 15:39











  • I am not sure, but It seems to be: `

    – jhabai38
    Mar 26 at 9:19











  • I have tried this : stackoverrun.com/fr/q/12414260 it compiles but same problem on IE11 here are the errors : .toString(36).slice(1)+(e?-$e:"")}

    – jhabai38
    Mar 26 at 10:13












  • So the issue is the template literal. You might want to add babel-plugin-transform-template-literals. See babeljs.io/docs/en/babel-plugin-transform-template-literals

    – Daniel Ruf
    Mar 26 at 10:49

















0















I'm updating dependencies on my website.
It works fine on recents browsers, Edge, Chrome, Firefox.



But on IE11, I get "SCRIPT1014: Caractère incorrect"
on this line :



eval("__webpack_require__.r(__webpack_exports__);n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Foundation", function


I thaught babel was well configured to make it work on IE11, but it's not.



Here is my configurations files
Package.json :




"name": "project_name",
"version": "3.0.0",
"description": "Starter project by us, build with foundation 6 & compiled with webpack 4",
"main": "index.js",
"scripts":
"test": "echo "Error: no test specified" && exit 1",
"dev": "webpack --mode development --watch",
"build": "cross-env NODE_ENV=production webpack --progress",
"proxy": "./node_modules/.bin/browser-sync start --config ./proxy.dev.json"
,
"keywords": [],
"author": "Me",
"license": "ISC",
"devDependencies":
"autoprefixer": "^8.6.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.7.0",
"browser-sync": "^2.26.3",
"cross-env": "^5.1.6",
"css-loader": "^0.28.11",
"mini-css-extract-plugin": "^0.5.0",
"node-sass": "^4.11.0",
"optimize-css-assets-webpack-plugin": "^4.0.2",
"postcss-loader": "^2.1.5",
"sass-loader": "^6.0.7",
"style-loader": "^0.23.1",
"webpack": "^4.20.2",
"webpack-cli": "^3.0.2"
,
"dependencies":
"jquery": "^3.2.1",
"foundation-sites": "^6.5.1",
"slick-carousel": "^1.6.0",
"cleave.js": "^0.7.15",
"family.scss": "^1.0.8",
"url-safe-string": "^1.1.0",
"jquery.easing": "1.4.1",
"jquery-colorbox": "^1.6.4",
"select2": "^4.0.3"




.babelrc



 
"presets" : [
["env",
"targets":
"browsers": ["last 2 versions", "ie >= 11"]

],
]



webpack.config.js



 // webpack v4

const webpack = require('webpack');
const path = require('path');

// pour créer le fichier CSS on utilise extractText
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

// pour minifier le CSS
const OptimizeCSSAssets = require("optimize-css-assets-webpack-plugin");
new OptimizeCSSAssets();

const devMode = process.env.NODE_ENV !== 'production';
var nodePath = path.resolve(__dirname, 'node_modules');

module.exports =
entry: [ './src/index.js'],
output:
path: path.resolve(__dirname, '../public/assets'),
filename: 'bundleV4.js'
,
module:
rules: [
// babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

test: /.js$/,
exclude: /(node_modules,
// allow SCSS to be compiled in CSS

test: /.(sa

]
,
plugins: [
new MiniCssExtractPlugin(
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: "appV4.css",
chunkFilename: "[id].css"
),
new webpack.ProvidePlugin(
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
)
],
;

// minify CSS for production
if (process.env.NODE_ENV === 'production')
module.exports.plugins.push(new OptimizeCSSAssets());










share|improve this question



















  • 1





    Which character exactly produces this error?

    – Daniel Ruf
    Mar 22 at 15:39











  • I am not sure, but It seems to be: `

    – jhabai38
    Mar 26 at 9:19











  • I have tried this : stackoverrun.com/fr/q/12414260 it compiles but same problem on IE11 here are the errors : .toString(36).slice(1)+(e?-$e:"")}

    – jhabai38
    Mar 26 at 10:13












  • So the issue is the template literal. You might want to add babel-plugin-transform-template-literals. See babeljs.io/docs/en/babel-plugin-transform-template-literals

    – Daniel Ruf
    Mar 26 at 10:49













0












0








0








I'm updating dependencies on my website.
It works fine on recents browsers, Edge, Chrome, Firefox.



But on IE11, I get "SCRIPT1014: Caractère incorrect"
on this line :



eval("__webpack_require__.r(__webpack_exports__);n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Foundation", function


I thaught babel was well configured to make it work on IE11, but it's not.



Here is my configurations files
Package.json :




"name": "project_name",
"version": "3.0.0",
"description": "Starter project by us, build with foundation 6 & compiled with webpack 4",
"main": "index.js",
"scripts":
"test": "echo "Error: no test specified" && exit 1",
"dev": "webpack --mode development --watch",
"build": "cross-env NODE_ENV=production webpack --progress",
"proxy": "./node_modules/.bin/browser-sync start --config ./proxy.dev.json"
,
"keywords": [],
"author": "Me",
"license": "ISC",
"devDependencies":
"autoprefixer": "^8.6.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.7.0",
"browser-sync": "^2.26.3",
"cross-env": "^5.1.6",
"css-loader": "^0.28.11",
"mini-css-extract-plugin": "^0.5.0",
"node-sass": "^4.11.0",
"optimize-css-assets-webpack-plugin": "^4.0.2",
"postcss-loader": "^2.1.5",
"sass-loader": "^6.0.7",
"style-loader": "^0.23.1",
"webpack": "^4.20.2",
"webpack-cli": "^3.0.2"
,
"dependencies":
"jquery": "^3.2.1",
"foundation-sites": "^6.5.1",
"slick-carousel": "^1.6.0",
"cleave.js": "^0.7.15",
"family.scss": "^1.0.8",
"url-safe-string": "^1.1.0",
"jquery.easing": "1.4.1",
"jquery-colorbox": "^1.6.4",
"select2": "^4.0.3"




.babelrc



 
"presets" : [
["env",
"targets":
"browsers": ["last 2 versions", "ie >= 11"]

],
]



webpack.config.js



 // webpack v4

const webpack = require('webpack');
const path = require('path');

// pour créer le fichier CSS on utilise extractText
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

// pour minifier le CSS
const OptimizeCSSAssets = require("optimize-css-assets-webpack-plugin");
new OptimizeCSSAssets();

const devMode = process.env.NODE_ENV !== 'production';
var nodePath = path.resolve(__dirname, 'node_modules');

module.exports =
entry: [ './src/index.js'],
output:
path: path.resolve(__dirname, '../public/assets'),
filename: 'bundleV4.js'
,
module:
rules: [
// babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

test: /.js$/,
exclude: /(node_modules,
// allow SCSS to be compiled in CSS

test: /.(sa

]
,
plugins: [
new MiniCssExtractPlugin(
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: "appV4.css",
chunkFilename: "[id].css"
),
new webpack.ProvidePlugin(
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
)
],
;

// minify CSS for production
if (process.env.NODE_ENV === 'production')
module.exports.plugins.push(new OptimizeCSSAssets());










share|improve this question
















I'm updating dependencies on my website.
It works fine on recents browsers, Edge, Chrome, Firefox.



But on IE11, I get "SCRIPT1014: Caractère incorrect"
on this line :



eval("__webpack_require__.r(__webpack_exports__);n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Foundation", function


I thaught babel was well configured to make it work on IE11, but it's not.



Here is my configurations files
Package.json :




"name": "project_name",
"version": "3.0.0",
"description": "Starter project by us, build with foundation 6 & compiled with webpack 4",
"main": "index.js",
"scripts":
"test": "echo "Error: no test specified" && exit 1",
"dev": "webpack --mode development --watch",
"build": "cross-env NODE_ENV=production webpack --progress",
"proxy": "./node_modules/.bin/browser-sync start --config ./proxy.dev.json"
,
"keywords": [],
"author": "Me",
"license": "ISC",
"devDependencies":
"autoprefixer": "^8.6.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.7.0",
"browser-sync": "^2.26.3",
"cross-env": "^5.1.6",
"css-loader": "^0.28.11",
"mini-css-extract-plugin": "^0.5.0",
"node-sass": "^4.11.0",
"optimize-css-assets-webpack-plugin": "^4.0.2",
"postcss-loader": "^2.1.5",
"sass-loader": "^6.0.7",
"style-loader": "^0.23.1",
"webpack": "^4.20.2",
"webpack-cli": "^3.0.2"
,
"dependencies":
"jquery": "^3.2.1",
"foundation-sites": "^6.5.1",
"slick-carousel": "^1.6.0",
"cleave.js": "^0.7.15",
"family.scss": "^1.0.8",
"url-safe-string": "^1.1.0",
"jquery.easing": "1.4.1",
"jquery-colorbox": "^1.6.4",
"select2": "^4.0.3"




.babelrc



 
"presets" : [
["env",
"targets":
"browsers": ["last 2 versions", "ie >= 11"]

],
]



webpack.config.js



 // webpack v4

const webpack = require('webpack');
const path = require('path');

// pour créer le fichier CSS on utilise extractText
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

// pour minifier le CSS
const OptimizeCSSAssets = require("optimize-css-assets-webpack-plugin");
new OptimizeCSSAssets();

const devMode = process.env.NODE_ENV !== 'production';
var nodePath = path.resolve(__dirname, 'node_modules');

module.exports =
entry: [ './src/index.js'],
output:
path: path.resolve(__dirname, '../public/assets'),
filename: 'bundleV4.js'
,
module:
rules: [
// babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

test: /.js$/,
exclude: /(node_modules,
// allow SCSS to be compiled in CSS

test: /.(sa

]
,
plugins: [
new MiniCssExtractPlugin(
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: "appV4.css",
chunkFilename: "[id].css"
),
new webpack.ProvidePlugin(
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
)
],
;

// minify CSS for production
if (process.env.NODE_ENV === 'production')
module.exports.plugins.push(new OptimizeCSSAssets());







jquery webpack zurb-foundation babel babel-loader






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 15:37









Daniel Ruf

4,6327 gold badges39 silver badges95 bronze badges




4,6327 gold badges39 silver badges95 bronze badges










asked Mar 22 at 11:57









jhabai38jhabai38

111 bronze badge




111 bronze badge







  • 1





    Which character exactly produces this error?

    – Daniel Ruf
    Mar 22 at 15:39











  • I am not sure, but It seems to be: `

    – jhabai38
    Mar 26 at 9:19











  • I have tried this : stackoverrun.com/fr/q/12414260 it compiles but same problem on IE11 here are the errors : .toString(36).slice(1)+(e?-$e:"")}

    – jhabai38
    Mar 26 at 10:13












  • So the issue is the template literal. You might want to add babel-plugin-transform-template-literals. See babeljs.io/docs/en/babel-plugin-transform-template-literals

    – Daniel Ruf
    Mar 26 at 10:49












  • 1





    Which character exactly produces this error?

    – Daniel Ruf
    Mar 22 at 15:39











  • I am not sure, but It seems to be: `

    – jhabai38
    Mar 26 at 9:19











  • I have tried this : stackoverrun.com/fr/q/12414260 it compiles but same problem on IE11 here are the errors : .toString(36).slice(1)+(e?-$e:"")}

    – jhabai38
    Mar 26 at 10:13












  • So the issue is the template literal. You might want to add babel-plugin-transform-template-literals. See babeljs.io/docs/en/babel-plugin-transform-template-literals

    – Daniel Ruf
    Mar 26 at 10:49







1




1





Which character exactly produces this error?

– Daniel Ruf
Mar 22 at 15:39





Which character exactly produces this error?

– Daniel Ruf
Mar 22 at 15:39













I am not sure, but It seems to be: `

– jhabai38
Mar 26 at 9:19





I am not sure, but It seems to be: `

– jhabai38
Mar 26 at 9:19













I have tried this : stackoverrun.com/fr/q/12414260 it compiles but same problem on IE11 here are the errors : .toString(36).slice(1)+(e?-$e:"")}

– jhabai38
Mar 26 at 10:13






I have tried this : stackoverrun.com/fr/q/12414260 it compiles but same problem on IE11 here are the errors : .toString(36).slice(1)+(e?-$e:"")}

– jhabai38
Mar 26 at 10:13














So the issue is the template literal. You might want to add babel-plugin-transform-template-literals. See babeljs.io/docs/en/babel-plugin-transform-template-literals

– Daniel Ruf
Mar 26 at 10:49





So the issue is the template literal. You might want to add babel-plugin-transform-template-literals. See babeljs.io/docs/en/babel-plugin-transform-template-literals

– Daniel Ruf
Mar 26 at 10:49












2 Answers
2






active

oldest

votes


















1














Thanks to you Daniel Ruf, I found the solution.



I deleted .babelrc



and I put this in my webpack.config.js file :



 module: {
rules: [
// babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

test: /.js$/,

use:
loader: "babel-loader",
options:
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-proposal-object-rest-spread']



,





share|improve this answer






























    0














    it might be that there are some transform plugins missing.
    Try adding babel-plugin-transform-es2015-template-literals using npm i babel-plugin-transform-es2015-template-literals -D and add it in your .babelrc




    "presets" : [
    ["env",
    "targets":
    "browsers": ["last 2 versions", "ie >= 11"]

    ],
    ],
    "plugins": ["transform-es2015-template-literals"]



    See https://babeljs.io/docs/en/babel-plugin-transform-template-literals






    share|improve this answer

























    • thanks for you help, now I get a new error : Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

      – jhabai38
      Mar 26 at 13:26











    • I added "babel-core": "^7.0.0-bridge.0", in my package.json. it compiles now, but I still have the initial error. Maybe, my config is wrong. Babelrc : "presets" : [ ["env", "targets": "browsers": ["last 2 versions", "ie >= 11"] ], ], "plugins": ["@babel/plugin-transform-template-literals"] webpack.config.js : test: /.js$/, exclude: /(node_modules,

      – jhabai38
      Mar 26 at 14:35












    • For older Babel versions use babel-plugin-transform-es2015-template-literals

      – Daniel Ruf
      Mar 26 at 14:46











    • See babeljs.io/…

      – Daniel Ruf
      Mar 26 at 15:00











    • same result with this in .babelrc "plugins": ["transform-es2015-template-literals"]

      – jhabai38
      Mar 27 at 9:40













    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55299121%2fscript1014-caract%25c3%25a8re-incorrect-on-ie11-webpack-babel-foundation%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Thanks to you Daniel Ruf, I found the solution.



    I deleted .babelrc



    and I put this in my webpack.config.js file :



     module: {
    rules: [
    // babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

    test: /.js$/,

    use:
    loader: "babel-loader",
    options:
    presets: ['@babel/preset-env'],
    plugins: ['@babel/plugin-proposal-object-rest-spread']



    ,





    share|improve this answer



























      1














      Thanks to you Daniel Ruf, I found the solution.



      I deleted .babelrc



      and I put this in my webpack.config.js file :



       module: {
      rules: [
      // babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

      test: /.js$/,

      use:
      loader: "babel-loader",
      options:
      presets: ['@babel/preset-env'],
      plugins: ['@babel/plugin-proposal-object-rest-spread']



      ,





      share|improve this answer

























        1












        1








        1







        Thanks to you Daniel Ruf, I found the solution.



        I deleted .babelrc



        and I put this in my webpack.config.js file :



         module: {
        rules: [
        // babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

        test: /.js$/,

        use:
        loader: "babel-loader",
        options:
        presets: ['@babel/preset-env'],
        plugins: ['@babel/plugin-proposal-object-rest-spread']



        ,





        share|improve this answer













        Thanks to you Daniel Ruf, I found the solution.



        I deleted .babelrc



        and I put this in my webpack.config.js file :



         module: {
        rules: [
        // babel converts ES6 JS into old-browser friendly JS, see .babelrc for more details

        test: /.js$/,

        use:
        loader: "babel-loader",
        options:
        presets: ['@babel/preset-env'],
        plugins: ['@babel/plugin-proposal-object-rest-spread']



        ,






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 27 at 10:09









        jhabai38jhabai38

        111 bronze badge




        111 bronze badge























            0














            it might be that there are some transform plugins missing.
            Try adding babel-plugin-transform-es2015-template-literals using npm i babel-plugin-transform-es2015-template-literals -D and add it in your .babelrc




            "presets" : [
            ["env",
            "targets":
            "browsers": ["last 2 versions", "ie >= 11"]

            ],
            ],
            "plugins": ["transform-es2015-template-literals"]



            See https://babeljs.io/docs/en/babel-plugin-transform-template-literals






            share|improve this answer

























            • thanks for you help, now I get a new error : Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

              – jhabai38
              Mar 26 at 13:26











            • I added "babel-core": "^7.0.0-bridge.0", in my package.json. it compiles now, but I still have the initial error. Maybe, my config is wrong. Babelrc : "presets" : [ ["env", "targets": "browsers": ["last 2 versions", "ie >= 11"] ], ], "plugins": ["@babel/plugin-transform-template-literals"] webpack.config.js : test: /.js$/, exclude: /(node_modules,

              – jhabai38
              Mar 26 at 14:35












            • For older Babel versions use babel-plugin-transform-es2015-template-literals

              – Daniel Ruf
              Mar 26 at 14:46











            • See babeljs.io/…

              – Daniel Ruf
              Mar 26 at 15:00











            • same result with this in .babelrc "plugins": ["transform-es2015-template-literals"]

              – jhabai38
              Mar 27 at 9:40















            0














            it might be that there are some transform plugins missing.
            Try adding babel-plugin-transform-es2015-template-literals using npm i babel-plugin-transform-es2015-template-literals -D and add it in your .babelrc




            "presets" : [
            ["env",
            "targets":
            "browsers": ["last 2 versions", "ie >= 11"]

            ],
            ],
            "plugins": ["transform-es2015-template-literals"]



            See https://babeljs.io/docs/en/babel-plugin-transform-template-literals






            share|improve this answer

























            • thanks for you help, now I get a new error : Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

              – jhabai38
              Mar 26 at 13:26











            • I added "babel-core": "^7.0.0-bridge.0", in my package.json. it compiles now, but I still have the initial error. Maybe, my config is wrong. Babelrc : "presets" : [ ["env", "targets": "browsers": ["last 2 versions", "ie >= 11"] ], ], "plugins": ["@babel/plugin-transform-template-literals"] webpack.config.js : test: /.js$/, exclude: /(node_modules,

              – jhabai38
              Mar 26 at 14:35












            • For older Babel versions use babel-plugin-transform-es2015-template-literals

              – Daniel Ruf
              Mar 26 at 14:46











            • See babeljs.io/…

              – Daniel Ruf
              Mar 26 at 15:00











            • same result with this in .babelrc "plugins": ["transform-es2015-template-literals"]

              – jhabai38
              Mar 27 at 9:40













            0












            0








            0







            it might be that there are some transform plugins missing.
            Try adding babel-plugin-transform-es2015-template-literals using npm i babel-plugin-transform-es2015-template-literals -D and add it in your .babelrc




            "presets" : [
            ["env",
            "targets":
            "browsers": ["last 2 versions", "ie >= 11"]

            ],
            ],
            "plugins": ["transform-es2015-template-literals"]



            See https://babeljs.io/docs/en/babel-plugin-transform-template-literals






            share|improve this answer















            it might be that there are some transform plugins missing.
            Try adding babel-plugin-transform-es2015-template-literals using npm i babel-plugin-transform-es2015-template-literals -D and add it in your .babelrc




            "presets" : [
            ["env",
            "targets":
            "browsers": ["last 2 versions", "ie >= 11"]

            ],
            ],
            "plugins": ["transform-es2015-template-literals"]



            See https://babeljs.io/docs/en/babel-plugin-transform-template-literals







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 26 at 15:12

























            answered Mar 26 at 10:52









            Daniel RufDaniel Ruf

            4,6327 gold badges39 silver badges95 bronze badges




            4,6327 gold badges39 silver badges95 bronze badges












            • thanks for you help, now I get a new error : Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

              – jhabai38
              Mar 26 at 13:26











            • I added "babel-core": "^7.0.0-bridge.0", in my package.json. it compiles now, but I still have the initial error. Maybe, my config is wrong. Babelrc : "presets" : [ ["env", "targets": "browsers": ["last 2 versions", "ie >= 11"] ], ], "plugins": ["@babel/plugin-transform-template-literals"] webpack.config.js : test: /.js$/, exclude: /(node_modules,

              – jhabai38
              Mar 26 at 14:35












            • For older Babel versions use babel-plugin-transform-es2015-template-literals

              – Daniel Ruf
              Mar 26 at 14:46











            • See babeljs.io/…

              – Daniel Ruf
              Mar 26 at 15:00











            • same result with this in .babelrc "plugins": ["transform-es2015-template-literals"]

              – jhabai38
              Mar 27 at 9:40

















            • thanks for you help, now I get a new error : Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

              – jhabai38
              Mar 26 at 13:26











            • I added "babel-core": "^7.0.0-bridge.0", in my package.json. it compiles now, but I still have the initial error. Maybe, my config is wrong. Babelrc : "presets" : [ ["env", "targets": "browsers": ["last 2 versions", "ie >= 11"] ], ], "plugins": ["@babel/plugin-transform-template-literals"] webpack.config.js : test: /.js$/, exclude: /(node_modules,

              – jhabai38
              Mar 26 at 14:35












            • For older Babel versions use babel-plugin-transform-es2015-template-literals

              – Daniel Ruf
              Mar 26 at 14:46











            • See babeljs.io/…

              – Daniel Ruf
              Mar 26 at 15:00











            • same result with this in .babelrc "plugins": ["transform-es2015-template-literals"]

              – jhabai38
              Mar 27 at 9:40
















            thanks for you help, now I get a new error : Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

            – jhabai38
            Mar 26 at 13:26





            thanks for you help, now I get a new error : Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

            – jhabai38
            Mar 26 at 13:26













            I added "babel-core": "^7.0.0-bridge.0", in my package.json. it compiles now, but I still have the initial error. Maybe, my config is wrong. Babelrc : "presets" : [ ["env", "targets": "browsers": ["last 2 versions", "ie >= 11"] ], ], "plugins": ["@babel/plugin-transform-template-literals"] webpack.config.js : test: /.js$/, exclude: /(node_modules,

            – jhabai38
            Mar 26 at 14:35






            I added "babel-core": "^7.0.0-bridge.0", in my package.json. it compiles now, but I still have the initial error. Maybe, my config is wrong. Babelrc : "presets" : [ ["env", "targets": "browsers": ["last 2 versions", "ie >= 11"] ], ], "plugins": ["@babel/plugin-transform-template-literals"] webpack.config.js : test: /.js$/, exclude: /(node_modules,

            – jhabai38
            Mar 26 at 14:35














            For older Babel versions use babel-plugin-transform-es2015-template-literals

            – Daniel Ruf
            Mar 26 at 14:46





            For older Babel versions use babel-plugin-transform-es2015-template-literals

            – Daniel Ruf
            Mar 26 at 14:46













            See babeljs.io/…

            – Daniel Ruf
            Mar 26 at 15:00





            See babeljs.io/…

            – Daniel Ruf
            Mar 26 at 15:00













            same result with this in .babelrc "plugins": ["transform-es2015-template-literals"]

            – jhabai38
            Mar 27 at 9:40





            same result with this in .babelrc "plugins": ["transform-es2015-template-literals"]

            – jhabai38
            Mar 27 at 9:40

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55299121%2fscript1014-caract%25c3%25a8re-incorrect-on-ie11-webpack-babel-foundation%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현