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

next configuration with recoil for IE 11 #54

Open
ghost opened this issue Nov 18, 2021 · 0 comments
Open

next configuration with recoil for IE 11 #54

ghost opened this issue Nov 18, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 18, 2021

I'm thinking about that I use recoil on my project..

But we have to support IE 11, but my configuration is not working in IE 11.

This is error message on IE 11. -- "Error was not caught SyntaxError"

So here is the below code.

// .babelrc
{
  "presets": ["next/babel"],
  "plugins": ["emotion"]
}
// next.config.js
const withPlugins = require('next-compose-plugins');
const withImages = require('next-images');
const withTM = require('next-transpile-modules')(['recoil'], { debug: true });

const nextConfig = {
  webpack: (config, options) => {
    return config;
  },
  publicRuntimeConfig: {
    ...environmentConfig
  }
}

const plugins = [
  withTM(nextConfig),
  [ withImages() ]
];

module.exports = withPlugins([...plugins]);

Could you help me?

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

0 participants