question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

version 4.0.4 issue with IE

See original GitHub issue

Vue.js version and component version

“vue-awesome-swiper”: 4.0.4 “vue”: “2.6.11”, “swiper”: “5.3.6”

Steps to reproduce

Hi, newest version of vue-awesome-swiper is not working on IE. I am using webpack with vue-loader and babel-loader. Also in my app.js importing these two lines for correct transpiling JS

import "core-js/stable";
import "regenerator-runtime/runtime";

and importing plugin globally:

import VueAwesomeSwiper from 'vue-awesome-swiper'
Vue.use(VueAwesomeSwiper)

IE shows Syntax error. I am not sure, if it is issue of webpack compiling or plugin issue. Previous version works fine. I noticed, that vue components are written in TS. Do I need to change my webpack conf.?

Webpack file:

'use strict';

const path = require("path");
const {VueLoaderPlugin} = require("vue-loader");
const TerserPlugin = require('terser-webpack-plugin');
const sortCSSmq = require('sort-css-media-queries');
const CompileTimePlugin = require('webpack-compile-time-plugin');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');

const resourcesPath = "xxx/xxx/xxx/xxx/xxx";

module.exports = {
    name: 'default',
    mode: 'development',
    entry: {
        app: `./${resourcesPath}/xxx/Vue/app.js`,
        critical: `./${resourcesPath}/xxx/Js/critical.js`,
    },
    output: {
        chunkFilename: 'chunks/dev/[id].[contenthash].js',
        filename: '[name].js',
        path: path.resolve(__dirname, `${resourcesPath}/Public/Js`),
        publicPath: `/xxx/xxx/xxx/xxx/Public/Js/`
    },
    optimization: {
        minimize: true,
        minimizer: [
            new TerserPlugin({
                extractComments: false,
                parallel: true,
            })
        ]
    },
    resolve: {
        alias: {
            'vue$': 'vue/dist/vue.esm.js'
        },
    },
    module: {
        rules: [
            {
                test: /\.vue$/,
                use: 'vue-loader'
            },
            {
                test: /\.js$/,
                loader: 'babel-loader',
                exclude: /node_modules/,
            },
        ]
    },
    plugins: [
        new CleanWebpackPlugin({
            cleanOnceBeforeBuildPatterns: [
                'chunks/dev/*'
            ]
        }),
        new VueLoaderPlugin(),
        new CompileTimePlugin()
    ],
    watch: true,
    watchOptions: {
        ignored: /node_modules/
    }
};

Can you help me pls?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
TongjieYangcommented, Apr 8, 2020

@pfasang when you can babel, you can add swiper and dom 7 , it work in ie11 you can configure in vue.config.js as follows:
transpileDependencies: [/vue-baidu-map/,/vue-awesome-swiper/,/swiper/,/dom7/]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting the error "You need Internet Explorer 4.0 or greater"
I am on Windows 8 IE 10 and trying to connect to a web page and getting an error saying I need IE...
Read more >
Outlook won't open: This functionality requires Internet ...
When I try to open Outlook, an error dialog says "this functionality requires Internet Explorer 4.0 or above. You can download it from...
Read more >
IE 4.0 gets an upgrade - CNET
IE 4.0 has suffered several bugs and glitches since its release, many of which Microsoft says are fixable with upgrades to other parts...
Read more >
Internet Explorer 4 - Wikipedia
Microsoft Internet Explorer 4 (IE4) is a graphical web browser that Microsoft unveiled in Spring of 1997, and released in September 1997, primarily...
Read more >
Internet Explorer 4 - WinWorld
With version 4, Microsoft began referring to IE as an "operating system component". IE 4 was bundled with Windows 98 First Edition, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found