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.

compatibility mode not accurately emulating IE.

See original GitHub issue

I changed our local es-dev-server to use build files from rollup and am getting errors with the legacy version loading in IE 11. I’d suggest we change es-dev-server to act like angular’s local dev server that compiles source files and outputs everything.

Aditionally, I have an error with my build output where the following error appears in IE when I import the component.

Unhandled promise rejection TypeError: @@toPrimitive must return a primitive value.

I am bundling chart.js which is just an import inside my web component. The chartjs import is a bundled file from another rollup output by the author. Anybody know how I can ignore my rollup configuration from ignoring and rollup transformations on that and just adding it to the output?

Following is my rollup config:

// import createDefaultConfig from '@open-wc/building-rollup/modern-and-legacy-config';
import { createCompatibilityConfig } from '@open-wc/building-rollup';
import replace from 'rollup-plugin-replace';
import typescript from '@rollup/plugin-typescript';
import babel from 'rollup-plugin-babel';
// if you need to support IE11 use 'modern-and-legacy-config' instead.
// import createDefaultConfig from '@open-wc/building-rollup/modern-and-legacy-config';

const configs = createCompatibilityConfig({
  production: true,
  input: './index.html',
  outputDir: 'dist-dev',
  plugins: [
    replace({
      'process.env.NODE_ENV': 'production',
    }),
    babel({}),
    typescript(),
  ],
  extensions: ['.js', '.ts', '.mjs'],
});

export default configs.map(config => ({
  ...config,
  output: {
    ...config.output,
    entryFileNames: '[name].js',
    chunkFileNames: '[name].js',
  },
}));

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
LarsDenBakkercommented, Mar 24, 2020

Thanks a lot for that clarification

0reactions
LarsDenBakkercommented, May 1, 2020

Going to close this one as there isn’t an actionable item for us here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Explorer (IE) mode troubleshooting and FAQ
Troubleshooting guide and FAQ for Microsoft Edge Internet Explorer mode.
Read more >
How To: Change Emulation Mode in Internet Explorer to Load ...
Tips and tricks to change the emulation mode in Internet Explorer and Edge ... Explorer or Edge browser is dropped into compatibility mode....
Read more >
Online Course does not work in Internet Explorer but works in ...
Compatibility Mode (Catalog) There is a compatibility mode field that can be set at the LO level from within your course catalog >...
Read more >
How to enable IE Mode on Microsoft Edge - Pureinfotech
On Windows 11 (and 10), the Microsoft Edge version based on the Chromium engine includes a compatibility mode using the Internet Explorer ......
Read more >
Why IE11 in WIN10 does not contain emulation to EDGE ...
Actually, that's a naming issue. Prior to Windows 10 when the Edge browser started, the compatibility modes listed the latest version (version ...
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