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.

Edge compatibility

See original GitHub issue

I just have this import in my project and doesn’t work in Edge, but in Chrome and Firefox works fine.

import { MglMap } from "vue-mapbox";

The console of the browser show me this error:

image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
cberthiaumecommented, Jul 22, 2019

I’m having the same issue as @ricardoSANICK and @WvanDam. Unfortunately, adding the transpileDependencies to vue.config.js isn’t working for me. I still get the same errors.

vue.config.js:

var webpack = require('webpack');

module.exports = {
  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        mapboxgl: 'mapbox-gl',
      }),
    ],
    optimization: {
      splitChunks: {
        chunks: 'all',
      },
    },
  },
  transpileDependencies: [
    'vue-mapbox',
  ],
};

.babel.config.js

module.exports = {
  presets: [
    '@vue/app',
  ],
};

.browserslistrc

> 1%
last 2 versions
not ie <= 8

@WvanDam, any idea of something I might have missed?

EDIT: I restarted Edge and now it seems to work. ¯_(ツ)_/¯

1reaction
WvanDamcommented, Jul 12, 2019

Experiencing same issue as @ricardoSANICK. It’s the spread operators. Removing those in the listed file causes the same error relating to another file in this package, which also has a spread operator.

Edit: The solution was to add this to vue.config.js

transpileDependencies: [
    'vue-mapbox'
  ],
Read more comments on GitHub >

github_iconTop Results From Across the Web

MS Edge - Enable Internet Explorer Compatibility Mode
Using the Internet Explorer mode · Open a website in Edge and right-click the session tab. · Click on the Reload tab selection...
Read more >
How to Use Compatibility Mode in Microsoft Edge
To enable Compatibility mode in Edge, click on the 'Settings and more' icon near the top-right corner or press ALT + F ,...
Read more >
How to Use Compatibility View on Edge - AddictiveTips
How to Turn on Compatibility View ; Press Alt + F to bring up the Edge menu and then click on Settings from...
Read more >
How to enable Compatibility View in Edge, not IE ...
There's no compatibility view in Edge. The only way you can try is to run the website in Edge IE mode. Edge IE...
Read more >
Verify Internet Explorer (IE) Compatibility Mode in Microsoft ...
Compatibility mode should be visible in your Edge browser settings if it has been activated on your device. The next few pages will...
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