Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Syntax error in IE #149

Closed
goatandsheep opened this issue Apr 29, 2020 · 4 comments
Closed

Unknown Syntax error in IE #149

goatandsheep opened this issue Apr 29, 2020 · 4 comments

Comments

@goatandsheep
Copy link
Contributor

goatandsheep commented Apr 29, 2020

On page loading, I get a Syntax error in IE that points to the InertRoot class. On FF and Chrome it seems okay. We are using Babel and our application has been IE compliant so far. I'm not sure what to make of the error:
image

image

To add further details, we are using jquery.

@goatandsheep goatandsheep changed the title Instability in IE Unknown Syntax error in IE Apr 29, 2020
@r0mflip
Copy link

r0mflip commented May 1, 2020

From the images it look like your insert is not transpiled for IE compat. Try transpiling it or you can have a try using https://unpkg.com/wicg-inert

@goatandsheep
Copy link
Contributor Author

Oh this is a duplicate of #136 then I think

@goatandsheep
Copy link
Contributor Author

How do I import a specific version, i.e. main vs module?

I'm doing this: import "wicg-inert";

@goatandsheep
Copy link
Contributor Author

I found this example webpack.config.js, which does:

module.exports = {
  resolve: {
    alias: {
      'wicg-inert': path.resolve('./node_modules/wicg-inert/dist/inert'),
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants